Last active
September 13, 2018 00:14
-
-
Save oconnoat/86aaa8495bae8ef347afafb9d0a92744 to your computer and use it in GitHub Desktop.
pandas tz localize
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
df['sent'] = pd.to_datetime(df['sent']) | |
df['dtz'] = df['sent'].dt.tz_localize('UTC').dt.tz_convert('US/Pacific') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment