-
-
Notifications
You must be signed in to change notification settings - Fork 18.6k
Feature: NaN in float64 series should become NaT with astype() #2984
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
s.diff() on datetime64[ns] is broken....use the workaround (which is essentially the same)
|
ok, I was not clear if it was considered broken or just a missing feature. Feel free to close it if you think it's a duplicate. Thanks for the summary! |
no its missing, so going to leave your issue open....I sort of threw abs is available - see #2957 |
@michaelaye I am going to close this an open a new one for the missing diff feature |
To get an auto-diff on a timeseries I do:
ts.diff()
with astype('timedelta64[ns']) it should convert the NaN into a NaT, if I understand things correctly?Instead this happens and I have to cut off the NaN to make it work:
The text was updated successfully, but these errors were encountered: