Skip to content

BUG: Fix timezone-related indexing and plotting bugs #27367

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 6 commits into from
Jul 17, 2019
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
Prev Previous commit
Next Next commit
black
  • Loading branch information
Matt Roeschke committed Jul 12, 2019
commit 14b09c6ec68bd2f769137c718e5db81f39d980d8
2 changes: 1 addition & 1 deletion pandas/tests/series/indexing/test_indexing.py
Original file line number Diff line number Diff line change
Expand Up @@ -851,7 +851,7 @@ def test_head_tail(test_data):

def test_setitem_tuple_with_datetimetz():
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you move to test_datetime (same dir)

# GH 20441
arr = pd.date_range('2017', periods=4, tz='US/Eastern')
arr = pd.date_range("2017", periods=4, tz="US/Eastern")
index = [(0, 1), (0, 2), (0, 3), (0, 4)]
result = Series(arr, index=index)
expected = result.copy()
Expand Down
2 changes: 1 addition & 1 deletion pandas/tests/series/test_timezones.py
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,7 @@ def test_constructor_data_aware_dtype_naive(self, tz_aware_fixture):
def test_numpy_reduction_with_tz_aware_dtype(self, tz_aware_fixture):
# GH 15552
tz = tz_aware_fixture
arg = to_datetime(['2019']).tz_localize(tz)
arg = to_datetime(["2019"]).tz_localize(tz)
expected = Series(arg)
result = np.minimum(expected, expected)
tm.assert_series_equal(result, expected)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Might belong in tests.reductions? Especially if it can be extended to the other box classes