Skip to content

Instantly share code, notes, and snippets.

@hunterowens
Created December 27, 2016 22:12
Show Gist options
  • Save hunterowens/62bcf3516da237f0fafc4136f94f7ba4 to your computer and use it in GitHub Desktop.
Save hunterowens/62bcf3516da237f0fafc4136f94f7ba4 to your computer and use it in GitHub Desktop.
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