diff --git a/bom-wind/bom_wind.py b/bom-wind/bom_wind.py index 6dc1284..d88f7e8 100644 --- a/bom-wind/bom_wind.py +++ b/bom-wind/bom_wind.py @@ -78,6 +78,7 @@ df = pd.DataFrame(json_data['observations']['data']) # Set local time as index df.index = pd.to_datetime(df['local_date_time_full']) +df = df.sort_index() # Extract columns of interest df = df[cols]