Skip to content

DOC: timezone conversion example added to pandas.Series.astype doc #33399 #33470

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 5 commits into from
Apr 12, 2020

Conversation

venkateshdatta1993
Copy link
Contributor

@venkateshdatta1993 venkateshdatta1993 commented Apr 10, 2020

…3399

Have added an example in the documentation page of pandas.Series.astype for datetime type with timezone.

@pep8speaks
Copy link

pep8speaks commented Apr 10, 2020

Hello @venkateshdatta1993! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found:

There are currently no PEP 8 issues detected in this Pull Request. Cheers! 🍻

Comment last updated at 2020-04-11 18:56:24 UTC

@venkateshdatta1993 venkateshdatta1993 changed the title DOC: timezone conversion example added to pandas.Series.astype doc #3… DOC: timezone conversion example added to pandas.Series.astype doc #33399 Apr 10, 2020

Convert to datetime type with time zone:

>>> # localize to UTC and convert to US/Eastern time zone
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Instead of the comment here, can you add it as commentary with Convert to datetime type with time zone:

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure @mroeschke

I'll make that change and update the PR.

@mroeschke mroeschke added the Docs label Apr 11, 2020
@mroeschke mroeschke added this to the 1.1 milestone Apr 11, 2020
@mroeschke mroeschke merged commit b3580c1 into pandas-dev:master Apr 12, 2020
@mroeschke
Copy link
Member

Thanks @venkateshdatta1993!

@venkateshdatta1993
Copy link
Contributor Author

Thanks @venkateshdatta1993!

Thanks @mroeschke for guiding me through this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

DOC: DatetimeTZDtype astype behavior with Series.astype
4 participants