Last active
November 8, 2019 21:20
-
-
Save justinr922/31de91884dc98336f4fc8e48d3258281 to your computer and use it in GitHub Desktop.
Converts the time data in Facebook location data tutorial
This file contains 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
# We can apply Pandas.to_datetime() on the creation_timestamp | |
# column. The unit is 's' for "seconds since the epoch since that is | |
# the current time format. | |
location_df['timestamp'] = pd.to_datetime(location_data['creation_timestamp'], unit='s') | |
#And drop the old column | |
location_df.drop('creation_timestamp', axis=1, inplace=True) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment