8000 TST: misplaced reduction/indexing tests by jbrockmendel · Pull Request #33307 · pandas-dev/pandas · GitHub
[go: up one dir, main page]

Skip to content

TST: misplaced reduction/indexing tests #33307

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Apr 6, 2020
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
misplaced reduction test
  • Loading branch information
jbrockmendel committed Mar 25, 2020
commit e4d738733cd499275e8fc4e1a9819d54b284c8c7
9 changes: 0 additions & 9 deletions pandas/tests/series/indexing/test_datetime.py
Original file line number Diff line number Diff line change
Expand Up @@ -705,15 +705,6 @@ def test_set_none_nan():
assert series[6] is NaT


def test_nat_operations():
# GH 8617
s = Series([0, pd.NaT], dtype="m8[ns]")
exp = s[0]
assert s.median() == exp
assert s.min() == exp
assert s.max() == exp


def test_setitem_tuple_with_datetimetz():
# GH 20441
arr = date_range("2017", periods=4, tz="US/Eastern")
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import pandas as pd
from pandas import Series


def test_reductions_td64_with_nat():
# GH#8617
ser = Series([0, pd.NaT], dtype="m8[ns]")
exp = ser[0]
assert ser.median() == exp
assert ser.min() == exp
assert ser.max() == exp
0