Created
July 25, 2021 03:34
-
-
Save git-shogg/9d66e348e12a88ad6d0e115f50ff33d1 to your computer and use it in GitHub Desktop.
Google_Timeline_Summary-Step_04.py
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
############################################################################### | |
# 4. Unpack the Data # | |
############################################################################### | |
df_rows = [] | |
for key in locations: | |
timestamp = float(key['timestampMs']) | |
latitude = float(key['latitudeE7'])/10000000 | |
longitude = float(key['longitudeE7'])/10000000 | |
if timestamp >= start_datetime and timestamp <= end_datetime: | |
df_rows.append([timestamp,latitude,longitude]) | |
df = pd.DataFrame(df_rows,columns=['timestamp','latitude','longitude']) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment