Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

TST: add regression tests for interpolate(method="time") with nullable dtypes (GH#40252) #62571

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

Open
jonathan-gut wants to merge 1 commit into pandas-dev:main
base: main
Choose a base branch
Loading
from jonathan-gut:issue

Conversation

Copy link

@jonathan-gut jonathan-gut commented Oct 4, 2025
edited
Loading

What does this implement/fix?

This PR adds regression tests ensuring that DataFrame.interpolate(method="time") works correctly with nullable Int64 and Float64 dtypes.

The original issue (#40252) reported that interpolate(method="time") raised a ValueError for these dtypes. On current main, the behavior is correct, but no dedicated tests existed. These tests safeguard against future regressions.

Changes

  • Added test_interpolate_time_with_nullable_int64
  • Added test_interpolate_time_with_nullable_float64
  • Added unsorted index case for completeness

Notes

No user-facing API change. Strictly test coverage.

@jonathan-gut jonathan-gut changed the title (削除) TST: regression tests for interpolate(method='time') with nullable dt... (削除ここまで) (追記) TST: add regression tests for interpolate(method="time") with nullable dtypes (GH#40252) (追記ここまで) Oct 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

BUG: Interpolate over time does not work with Int64 or Float64
1 participant

AltStyle によって変換されたページ (->オリジナル) /