-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
TST: Empty Series.reindex with tz-aware dtype #23480
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
TST: Empty Series.reindex with tz-aware dtype #23480
Conversation
Hello @mroeschke! Thanks for submitting the PR.
|
Codecov Report
@@ Coverage Diff @@
## master #23480 +/- ##
=======================================
Coverage 92.23% 92.23%
=======================================
Files 161 161
Lines 51197 51197
=======================================
Hits 47220 47220
Misses 3977 3977
Continue to review full report at Codecov.
|
@@ -1197,6 +1197,7 @@ Indexing | |||
- The traceback from a ``KeyError`` when asking ``.loc`` for a single missing label is now shorter and more clear (:issue:`21557`) | |||
- When ``.ix`` is asked for a missing integer label in a :class:`MultiIndex` with a first level of integer type, it now raises a ``KeyError``, consistently with the case of a flat :class:`Int64Index`, rather than falling back to positional indexing (:issue:`21593`) | |||
- Bug in :meth:`DatetimeIndex.reindex` when reindexing a tz-naive and tz-aware :class:`DatetimeIndex` (:issue:`8306`) | |||
- Bug in :meth:`Series.reindex` when reindexing an empty series with a ``datetime64[ns, tz]`` dtype (:issue:`20869`) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can't call this a bug (or add any kind of whatsnew
) when the test you added to break pandas
passes on CI. 😉 🎉
Or was this broken in 0.23.4
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It doesn't look broken in 0.23.4
, but there was a never a whatsnew note that this was fixed.
pandas/tests/test_multilevel.py
Outdated
# GH 20869 | ||
result = Series(dtype='datetime64[ns, UTC]').reindex([0, 1]) | ||
expected = Series([pd.NaT] * 2, dtype='datetime64[ns, UTC]') | ||
tm.assert_equal(result, expected) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
move in pandas/tests/series where reindex tests are
thanks |
git diff upstream/master -u -- "*.py" | flake8 --diff