-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
BUG: Fix interpolate ValueError for datetime64_tz index #27549
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
Conversation
doc/source/whatsnew/v0.25.1.rst
Outdated
@@ -56,7 +56,7 @@ Timezones | |||
|
|||
Numeric | |||
^^^^^^^ | |||
- | |||
- Bug in :meth:`interpolate` when using a timezone aware index (:issue:`27548`) |
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.
... when using a timezone aware :class:`DatetimeIndex` ...
doc/source/whatsnew/v0.25.1.rst
Outdated
@@ -56,7 +56,7 @@ Timezones | |||
|
|||
Numeric | |||
^^^^^^^ | |||
- | |||
- Bug in :meth:`interpolate` when using a timezone aware :class:`DatetimeIndex` (:issue:`27548`) |
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.
this won't render, you want :meth:`Series.interpolate`
looks ok, ping when changed & green. |
@@ -1521,12 +1521,23 @@ def test_interp_nonmono_raise(self): | |||
s.interpolate(method="krogh") | |||
|
|||
@td.skip_if_no_scipy | |||
def test_interp_datetime64(self): | |||
@pytest.mark.parametrize("method", ["nearest", "pad"]) |
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.
you can parametrize on tz_naive_fixture here (and just remove the bottom test); this includes None and a bunch of timezones.
@jreback I've updated to use the tz_naive_fixture and checks are green |
thanks @alorenzo175 |
…etime64_tz index
black pandas
git diff upstream/master -u -- "*.py" | flake8 --diff