Created
December 27, 2016 22:12
-
-
Save hunterowens/62bcf3516da237f0fafc4136f94f7ba4 to your computer and use it in GitHub Desktop.
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
import pandas as pd | |
import datetime | |
df = pd.read_csv('./path_to_file.csv') | |
df['date'] = df['datetime'].apply(datetime.datetime.fromtimestamp) | |
df.to_csv('new_file') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment