-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
API/DEPR: interpolate with object dtype #53631
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
Comments
Sounds good to me. |
I am currently using |
@verglasz i think you are correct in your idea :( my code
becomes
i am not even sure about interpolating datetime's :( |
ATM if we have object-dtype, interpolate is incorrectly a no-op. (In the DataFrame case we have a weird check that raises on all-object).
If we disable the check in Block.interpolate
if m is None and self.dtype.kind != "f":
that short-circuits, then the OP case raises in np.interp when trying to cast to float64.The viable options I see are:
I lean towards "do 2) immediately and 1) with a deprecation cycle".
(I haven't checked the scipy paths, just the numpy one)
The text was updated successfully, but these errors were encountered: