Skip to content

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

Merged
merged 6 commits into from
Jul 24, 2019

Conversation

alorenzo175
Copy link
Contributor

@@ -56,7 +56,7 @@ Timezones

Numeric
^^^^^^^
-
- Bug in :meth:`interpolate` when using a timezone aware index (:issue:`27548`)
Copy link
Member

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` ...

@jreback jreback added Bug Numeric Operations Arithmetic, Comparison, and Logical operations Timezones Timezone data dtype labels Jul 23, 2019
@@ -56,7 +56,7 @@ Timezones

Numeric
^^^^^^^
-
- Bug in :meth:`interpolate` when using a timezone aware :class:`DatetimeIndex` (:issue:`27548`)
Copy link
Contributor

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`

@jreback jreback added this to the 0.25.1 milestone Jul 23, 2019
@jreback
Copy link
Contributor

jreback commented Jul 23, 2019

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"])
Copy link
Contributor

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.

@alorenzo175
Copy link
Contributor Author

@jreback I've updated to use the tz_naive_fixture and checks are green

@jreback jreback merged commit 460f174 into pandas-dev:master Jul 24, 2019
@jreback
Copy link
Contributor

jreback commented Jul 24, 2019

thanks @alorenzo175

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Numeric Operations Arithmetic, Comparison, and Logical operations Timezones Timezone data dtype
Projects
None yet
Development

Successfully merging this pull request may close these issues.

pd.Series.interpolate() ValueError for some methods with TZ localized index
3 participants