-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
DatetimeIndex.to_frame() inconsistent with dti.to_series().to_frame() #23728
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
Never mind, this was true in 0.23 but not in master. |
Actually, it looks like the |
Would the idea then be for |
I think that's the most reasonable behavior yes. IIRC there was a historical reason why it wasnt the default. @jorisvandenbossche I think you've opened an issue about changing this behavior? |
xref #17832 |
Yes, we should deprecate |
Opened a PR for it: #23739 |
For TZ-aware DatetimeIndex,
to_series()
drops the timezone unless we passkeep_tz=True
IIRC there has been discussion about deprecating the need for
keep_tz
; this should be another reason to do so.The text was updated successfully, but these errors were encountered: