Skip to content

Commit

Permalink
time metadata for Graz notebook
Browse files Browse the repository at this point in the history
  • Loading branch information
alex-rind committed Sep 22, 2023
1 parent 88e42c7 commit 81dd303
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion examples/SoniScope-Graz.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,12 @@
"source": [
"daily_file = 'Graz-Mitte-Gries-Luft.csv'\n",
"daily = pd.read_table(daily_file, sep=',')\n",
"\n",
"daily['Datum'] = pd.to_datetime(daily['Datum'])\n",
"daily['TagDesJahres'] = daily['Datum'].dt.dayofyear\n",
"daily['Jahr'] = daily['Datum'].dt.year\n",
"daily['Monat'] = daily['Datum'].dt.month\n",
"daily['Index'] = daily['Datum'].index\n",
"daily"
]
},
Expand Down Expand Up @@ -514,7 +520,7 @@
"#----------------------------------------------------\n",
"drpX = widgets.Dropdown(options=numeric_cols, value=numeric_cols[0], description='X-Axis:',)\n",
"drpY = widgets.Dropdown(options=numeric_cols, value=numeric_cols[1], description='Y-Axis:',)\n",
"drpC = widgets.Dropdown(options=['', 'Jahreszeit', 'Wochentag'], value='', description='Color:',)\n",
"drpC = widgets.Dropdown(options=['', 'Jahreszeit', 'Wochentag', 'Jahr', 'Monat'], value='', description='Color:',)\n",
"\n",
"#----------------------------------------------------\n",
"# connection between frontend and python\n",
Expand Down Expand Up @@ -637,6 +643,16 @@
"id": "3105710f-a640-438b-8ea2-7f690b7d92f0",
"metadata": {},
"outputs": [],
"source": [
"daily.loc[(daily['PM10 (Feinstaub) [µg/m³]'] > 40) & (daily['Jahreszeit'] == 'Sommer')]"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "d53349cf-1764-4d8d-b28f-0ce4c1e8b003",
"metadata": {},
"outputs": [],
"source": []
}
],
Expand Down

0 comments on commit 81dd303

Please sign in to comment.