Fix timestamp sorting

master
Dan Howe 5 years ago
parent dece15191b
commit 5ed64c4b0b

@ -78,6 +78,7 @@ df = pd.DataFrame(json_data['observations']['data'])
# Set local time as index # Set local time as index
df.index = pd.to_datetime(df['local_date_time_full']) df.index = pd.to_datetime(df['local_date_time_full'])
df = df.sort_index()
# Extract columns of interest # Extract columns of interest
df = df[cols] df = df[cols]

Loading…
Cancel
Save