Skip to content

Conversation

jonathan-gut
Copy link

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

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
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

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