Skip to content

DOC: mention tz_convert(None) and tz_localize(None) for dataframe or series #49691

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

Merged
merged 4 commits into from
Nov 21, 2022

Conversation

georeth
Copy link
Contributor

@georeth georeth commented Nov 14, 2022

DOC: mention tz_convert(None) and tz_localize(None) for dataframe or series

I found the functionality to convert tz-aware axis to tz-naive axis is documented in DatatimeIndex but not documented in DataFrame or Series. Add more documentation to mention this feature.

pandas.DatetimeIndex.tz_convert
pandas.DatetimeIndex.tz_localize

@mroeschke mroeschke added Docs Timezones Timezone data dtype labels Nov 16, 2022
@georeth
Copy link
Contributor Author

georeth commented Nov 18, 2022

Also add examples:

  • tz_convert: normal usage and tz_convert(None)
  • tz_localize: tz_localize(None)

@georeth
Copy link
Contributor Author

georeth commented Nov 18, 2022

I didn't generate the HTML doc and check the result. please double check.

feel free to modify this PR.

@georeth georeth requested a review from phofl November 18, 2022 10:39
@georeth georeth force-pushed the fix-tz-localize-convert-doc branch from 3541531 to 050b5ac Compare November 18, 2022 10:48
@georeth georeth requested review from mroeschke and removed request for phofl November 19, 2022 09:44
@georeth georeth force-pushed the fix-tz-localize-convert-doc branch from 52b54a6 to f978e67 Compare November 20, 2022 12:08
@mroeschke mroeschke added this to the 2.0 milestone Nov 21, 2022
@phofl phofl merged commit 025fbd0 into pandas-dev:main Nov 21, 2022
@phofl
Copy link
Member

phofl commented Nov 21, 2022

thx @georeth

@georeth georeth deleted the fix-tz-localize-convert-doc branch November 22, 2022 10:53
mliu08 pushed a commit to mliu08/pandas that referenced this pull request Nov 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Docs Timezones Timezone data dtype
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants