-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
Make NatType more Timestamp-like and less datetime.datetime-like #12976
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
Can you describe expected output? |
So this is a bit of an API design issue actually. The cython implementation of However, a lot has changed since the beginning, and now we use So we could take several paths here:
In 1) and 2) you could make the objects respond to isinstance checks (e.g. So I am not sure that 3) really gains you a lot except more complexity, though you do get the ability to then construct things that don't default e.g.
thoughts @wesm @sinhrks @jorisvandenbossche |
My preference would be to limit the amount of effort we're expending in advance of the internals overhaul (which may be able to yield a single, global |
I agree that the existing behavior is strange, but also agree with @wesm that it should be differed to the internals overhaul. |
actually going to close this. NaT mimics almost all methods/attributes of datetimes ATM. Though many of them raise (on purpose). So a user has to be aware of missing values when not using pandas. |
The text was updated successfully, but these errors were encountered: