Skip to content
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

BUG: Series.interpolate with dt64/td64 raises #51005

Merged
merged 5 commits into from
Feb 3, 2023

Conversation

jbrockmendel
Copy link
Member

@@ -78,6 +78,40 @@ def interp_methods_ind(request):


class TestSeriesInterpolateData:
def test_interpolate_datetimelike_values(self):
Copy link
Member

Choose a reason for hiding this comment

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

Do we have DataFrame.interpolate tests with NaT?

Copy link
Member Author

Choose a reason for hiding this comment

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

i dont think so. before long ill do a pass to parametrize all of these over frame_or_series

Copy link
Member Author

Choose a reason for hiding this comment

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

good suggestion, turns out it was broken with DataFrame. fixed.

@mroeschke mroeschke added the Missing-data np.nan, pd.NaT, pd.NA, dropna, isnull, interpolate label Jan 30, 2023
@mroeschke mroeschke added this to the 2.0 milestone Feb 3, 2023
@mroeschke mroeschke merged commit 92e2379 into pandas-dev:main Feb 3, 2023
@mroeschke
Copy link
Member

Thanks @jbrockmendel

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Missing-data np.nan, pd.NaT, pd.NA, dropna, isnull, interpolate
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ENH: interpolation of datetime values (NaT)
2 participants