-
-
Notifications
You must be signed in to change notification settings - Fork 18.6k
DEPR: NDFrame.to_period, to_timestamp, tz_localize, tz_convert #52110
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
I'm +1 on deprecating those methods. i can never remember which index methods are mirrored in the ndframe, so I always end up just doing df = df.copy() # if I don't want to keep the old frame
df.index = df.index.tz_localize(tz) IMO a We have a lot of index methods and only some will feature in the |
We had a discussion related to this PR during the dev meeting on 4/26/23. Methods like I did a PR for |
I am fine with deprecating |
Uh oh!
There was an error while loading. Please reload this page.
These are methods that operate on the index/columns, not the series/frame values. We could deprecate in favor of e.g.
obj.set_axis(obj.index.to_timestamp(), axis=0)
The text was updated successfully, but these errors were encountered: