From f84a785e3daea23d48546903234a5bdcfb65362b Mon Sep 17 00:00:00 2001 From: frankknoll Date: Thu, 10 Mar 2022 00:12:37 +0100 Subject: [PATCH 1/2] correcting a typo --- src/help.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/help.txt b/src/help.txt index d3fd25be738..b962e40ca5b 100644 --- a/src/help.txt +++ b/src/help.txt @@ -42,7 +42,7 @@ u039k20a 039K20A and 032 039K20A, 011L20 -Diesen Befehl ausfüren: +Diesen Befehl ausführen: jupyter nbconvert --to notebook --execute /home/frankknoll/Dokumente/Corona/projects/HowBadIsMyBatch-publish/src/intensivstationen/Intensivstationen.ipynb man 5 fcrontab From 0070d4e7917ef8ee321f1fe78985662ef6b06325 Mon Sep 17 00:00:00 2001 From: frankknoll Date: Fri, 11 Mar 2022 09:02:12 +0100 Subject: [PATCH 2/2] handling chained_assignment correctly --- src/intensivstationen/Intensivstationen.ipynb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/intensivstationen/Intensivstationen.ipynb b/src/intensivstationen/Intensivstationen.ipynb index a7ee39f7353..f5705f3b171 100644 --- a/src/intensivstationen/Intensivstationen.ipynb +++ b/src/intensivstationen/Intensivstationen.ipynb @@ -11,7 +11,8 @@ "from urllib import request\n", "\n", "pd.set_option('display.max_rows', 100)\n", - "pd.set_option('display.max_columns', None)" + "pd.set_option('display.max_columns', None)\n", + "pd.set_option('mode.chained_assignment', 'raise')" ] }, { @@ -357,7 +358,7 @@ "\n", "\n", "def _intensiveCareBeds2Dict(intensiveCareBeds):\n", - " df = intensiveCareBeds[['date', 'betten_belegt', 'betten_frei']]\n", + " df = intensiveCareBeds[['date', 'betten_belegt', 'betten_frei']].copy()\n", " df['date'] = df['date'].dt.strftime('%Y-%m-%d')\n", " return df.to_dict(orient = \"records\")\n", "\n",