{ "cells": [ { "cell_type": "code", "execution_count": 1, "metadata": {}, "outputs": [], "source": [ "import pandas as pd\n", "import numpy as np\n", "\n", "from src.preprocessing.synthetic_data import SIR, I\n", "from src.preprocessing.transform_data import transform_data, transform_jh_germany_data, transform_paper_data\n", "\n", "from src.plotter import Plotter" ] }, { "cell_type": "code", "execution_count": 2, "metadata": {}, "outputs": [], "source": [ "plotter = Plotter()" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "transform_paper_data()" ] }, { "cell_type": "code", "execution_count": 3, "metadata": {}, "outputs": [], "source": [ "dataset_path = './datasets/COVID-19-Todesfaelle_in_Deutschland/'\n", "datatset_name = 'COVID-19-Todesfaelle_Deutschland.csv'\n", "\n", "df = pd.read_csv(dataset_path + datatset_name)\n", "\n", "plotter.plot(df[\"Berichtsdatum\"].to_numpy(), \n", " [df[\"Todesfaelle_gesamt\"].to_numpy(), df[\"Faelle_gesamt\"].to_numpy()],\n", " [\"Total number of death cases\", \"Total number of infection cases\"], \n", " \"dataset_visualization\",\n", " \"Death case dataset (RKI)\",\n", " (12, 6),\n", " y_log_scale=True, \n", " xlabel=\"Date of reported data\")\n", "\n", "\n", "# df.plot(logy=True, x='Berichtsdatum', rot=45)" ] }, { "cell_type": "code", "execution_count": 4, "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "reference_params_synth 0.35 0.5\n", "high_alpha_synth 0.45 0.5\n", "low_alpha_synth 0.25 0.5\n", "high_beta_synth 0.35 0.4\n", "low_beta_synth 0.35 0.6\n" ] } ], "source": [ "# https://maa.org/press/periodicals/loci/joma/the-sir-model-for-spread-of-disease-the-differential-equation-model\n", "params = {'reference_params_synth' : (0.35, 0.5, 'reference parameters'),\n", " 'high_alpha_synth' : (0.45, 0.5, r'high $\\alpha$'),\n", " 'low_alpha_synth' : (0.25, 0.5, r'low $\\alpha$'),\n", " 'high_beta_synth' : (0.35, 0.4, r'high $\\beta$'),\n", " 'low_beta_synth' : (0.35, 0.6, r'low $\\beta$')}\n", "for params_set_name in params.keys():\n", " print(params_set_name, params[params_set_name][0], params[params_set_name][1])\n", " synth_sir_data = SIR(plotter, N=59e6, I_0=1, alpha=params[params_set_name][0], beta=params[params_set_name][1], simulation_time=500, time_points=500)\n", " synth_sir_data.generate()\n", " synth_sir_data.plot(params[params_set_name][2], file_name=params_set_name)" ] }, { "cell_type": "code", "execution_count": 5, "metadata": {}, "outputs": [], "source": [ "synth_sir_data = SIR(plotter, N=7.6e6, I_0=10, alpha=1/3, beta=1/2, simulation_time=150, time_points=150)\n", "synth_sir_data.generate()\n", "synth_sir_data.plot('synthetic SIR data', \"SIR_synth\")\n", "synth_sir_data.save()" ] }, { "cell_type": "code", "execution_count": 6, "metadata": {}, "outputs": [], "source": [ "synth_i_data = I(plotter, 7.6e6, 10**5, I_0=10, alpha=1/3, time_points=150)\n", "synth_i_data.generate()\n", "synth_i_data.plot('synthetic I data', 'I_synth')\n", "synth_i_data.save()\n" ] }, { "cell_type": "code", "execution_count": 7, "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "Bremen\n", "Sachsen\n", "Schleswig Holstein\n", "Niedersachsen\n", "Mecklenburg-Vorpommern\n", "Hamburg\n", "Rheinland-Pfalz\n", "Brandenburg\n", "Nordrhein-Westfalen\n", "Berlin\n", "Thüringen\n", "Hessen\n", "Saarland\n", "Bayern\n", "Baden-Württemberg\n", "Sachsen-Anhalt\n" ] } ], "source": [ "states = ['Bremen', \n", " 'Sachsen', \n", " 'Schleswig Holstein', \n", " 'Niedersachsen', \n", " 'Mecklenburg-Vorpommern', \n", " 'Hamburg', \n", " 'Rheinland-Pfalz',\n", " 'Brandenburg',\n", " 'Nordrhein-Westfalen',\n", " 'Berlin',\n", " 'Thüringen',\n", " 'Hessen',\n", " 'Saarland',\n", " 'Bayern',\n", " 'Baden-Württemberg',\n", " 'Sachsen-Anhalt']\n", "\n", "transform_data(plotter, state_name='Germany', model=\"SIR\")\n", "transform_data(plotter, state_name='Germany', model=\"I\")\n", "transform_data(plotter, state_name='Germany', model=\"I\", alpha=1/5)\n", "for state in states:\n", " print(state)\n", " transform_data(plotter, state_name=state, model=\"SIR\")\n", " transform_data(plotter, state_name=state, model=\"I\")\n", " transform_data(plotter, state_name=state, model=\"I\", alpha=1/5)\n", " " ] }, { "cell_type": "code", "execution_count": 8, "metadata": {}, "outputs": [ { "name": "stderr", "output_type": "stream", "text": [ "/home/rothenbeck/Covid_19_DINN/src/preprocessing/transform_data.py:48: FutureWarning: Calling float on a single element Series is deprecated and will raise a TypeError in the future. Use float(ser.iloc[0]) instead\n", " infections[i] = date_df['Confirmed'].fillna(0).astype(int)\n", "/home/rothenbeck/Covid_19_DINN/src/preprocessing/transform_data.py:49: FutureWarning: Calling float on a single element Series is deprecated and will raise a TypeError in the future. Use float(ser.iloc[0]) instead\n", " deaths[i] = date_df['Deaths'].fillna(0).astype(int)\n", "/home/rothenbeck/Covid_19_DINN/src/preprocessing/transform_data.py:50: FutureWarning: Calling float on a single element Series is deprecated and will raise a TypeError in the future. Use float(ser.iloc[0]) instead\n", " recoveries[i] = date_df['Recovered'].fillna(0).astype(int)\n", "/home/rothenbeck/Covid_19_DINN/src/preprocessing/transform_data.py:48: FutureWarning: Calling float on a single element Series is deprecated and will raise a TypeError in the future. Use float(ser.iloc[0]) instead\n", " infections[i] = date_df['Confirmed'].fillna(0).astype(int)\n", "/home/rothenbeck/Covid_19_DINN/src/preprocessing/transform_data.py:49: FutureWarning: Calling float on a single element Series is deprecated and will raise a TypeError in the future. Use float(ser.iloc[0]) instead\n", " deaths[i] = date_df['Deaths'].fillna(0).astype(int)\n", "/home/rothenbeck/Covid_19_DINN/src/preprocessing/transform_data.py:50: FutureWarning: Calling float on a single element Series is deprecated and will raise a TypeError in the future. Use float(ser.iloc[0]) instead\n", " recoveries[i] = date_df['Recovered'].fillna(0).astype(int)\n", "/home/rothenbeck/Covid_19_DINN/src/preprocessing/transform_data.py:48: FutureWarning: Calling float on a single element Series is deprecated and will raise a TypeError in the future. Use float(ser.iloc[0]) instead\n", " infections[i] = date_df['Confirmed'].fillna(0).astype(int)\n", "/home/rothenbeck/Covid_19_DINN/src/preprocessing/transform_data.py:49: FutureWarning: Calling float on a single element Series is deprecated and will raise a TypeError in the future. Use float(ser.iloc[0]) instead\n", " deaths[i] = date_df['Deaths'].fillna(0).astype(int)\n", "/home/rothenbeck/Covid_19_DINN/src/preprocessing/transform_data.py:50: FutureWarning: Calling float on a single element Series is deprecated and will raise a TypeError in the future. Use float(ser.iloc[0]) instead\n", " recoveries[i] = date_df['Recovered'].fillna(0).astype(int)\n", "/home/rothenbeck/Covid_19_DINN/src/preprocessing/transform_data.py:48: FutureWarning: Calling float on a single element Series is deprecated and will raise a TypeError in the future. Use float(ser.iloc[0]) instead\n", " infections[i] = date_df['Confirmed'].fillna(0).astype(int)\n", "/home/rothenbeck/Covid_19_DINN/src/preprocessing/transform_data.py:49: FutureWarning: Calling float on a single element Series is deprecated and will raise a TypeError in the future. Use float(ser.iloc[0]) instead\n", " deaths[i] = date_df['Deaths'].fillna(0).astype(int)\n", "/home/rothenbeck/Covid_19_DINN/src/preprocessing/transform_data.py:50: FutureWarning: Calling float on a single element Series is deprecated and will raise a TypeError in the future. Use float(ser.iloc[0]) instead\n", " recoveries[i] = date_df['Recovered'].fillna(0).astype(int)\n", "/home/rothenbeck/Covid_19_DINN/src/preprocessing/transform_data.py:48: FutureWarning: Calling float on a single element Series is deprecated and will raise a TypeError in the future. Use float(ser.iloc[0]) instead\n", " infections[i] = date_df['Confirmed'].fillna(0).astype(int)\n", "/home/rothenbeck/Covid_19_DINN/src/preprocessing/transform_data.py:49: FutureWarning: Calling float on a single element Series is deprecated and will raise a TypeError in the future. Use float(ser.iloc[0]) instead\n", " deaths[i] = date_df['Deaths'].fillna(0).astype(int)\n", "/home/rothenbeck/Covid_19_DINN/src/preprocessing/transform_data.py:50: FutureWarning: Calling float on a single element Series is deprecated and will raise a TypeError in the future. Use float(ser.iloc[0]) instead\n", " recoveries[i] = date_df['Recovered'].fillna(0).astype(int)\n", "/home/rothenbeck/Covid_19_DINN/src/preprocessing/transform_data.py:48: FutureWarning: Calling float on a single element Series is deprecated and will raise a TypeError in the future. Use float(ser.iloc[0]) instead\n", " infections[i] = date_df['Confirmed'].fillna(0).astype(int)\n", "/home/rothenbeck/Covid_19_DINN/src/preprocessing/transform_data.py:49: FutureWarning: Calling float on a single element Series is deprecated and will raise a TypeError in the future. Use float(ser.iloc[0]) instead\n", " deaths[i] = date_df['Deaths'].fillna(0).astype(int)\n", "/home/rothenbeck/Covid_19_DINN/src/preprocessing/transform_data.py:50: FutureWarning: Calling float on a single element Series is deprecated and will raise a TypeError in the future. Use float(ser.iloc[0]) instead\n", " recoveries[i] = date_df['Recovered'].fillna(0).astype(int)\n", "/home/rothenbeck/Covid_19_DINN/src/preprocessing/transform_data.py:48: FutureWarning: Calling float on a single element Series is deprecated and will raise a TypeError in the future. Use float(ser.iloc[0]) instead\n", " infections[i] = date_df['Confirmed'].fillna(0).astype(int)\n", "/home/rothenbeck/Covid_19_DINN/src/preprocessing/transform_data.py:49: FutureWarning: Calling float on a single element Series is deprecated and will raise a TypeError in the future. Use float(ser.iloc[0]) instead\n", " deaths[i] = date_df['Deaths'].fillna(0).astype(int)\n", "/home/rothenbeck/Covid_19_DINN/src/preprocessing/transform_data.py:50: FutureWarning: Calling float on a single element Series is deprecated and will raise a TypeError in the future. Use float(ser.iloc[0]) instead\n", " recoveries[i] = date_df['Recovered'].fillna(0).astype(int)\n", "/home/rothenbeck/Covid_19_DINN/src/preprocessing/transform_data.py:48: FutureWarning: Calling float on a single element Series is deprecated and will raise a TypeError in the future. Use float(ser.iloc[0]) instead\n", " infections[i] = date_df['Confirmed'].fillna(0).astype(int)\n", "/home/rothenbeck/Covid_19_DINN/src/preprocessing/transform_data.py:49: FutureWarning: Calling float on a single element Series is deprecated and will raise a TypeError in the future. Use float(ser.iloc[0]) instead\n", " deaths[i] = date_df['Deaths'].fillna(0).astype(int)\n", "/home/rothenbeck/Covid_19_DINN/src/preprocessing/transform_data.py:50: FutureWarning: Calling float on a single element Series is deprecated and will raise a TypeError in the future. Use float(ser.iloc[0]) instead\n", " recoveries[i] = date_df['Recovered'].fillna(0).astype(int)\n", "/home/rothenbeck/Covid_19_DINN/src/preprocessing/transform_data.py:48: FutureWarning: Calling float on a single element Series is deprecated and will raise a TypeError in the future. Use float(ser.iloc[0]) instead\n", " infections[i] = date_df['Confirmed'].fillna(0).astype(int)\n", "/home/rothenbeck/Covid_19_DINN/src/preprocessing/transform_data.py:49: FutureWarning: Calling float on a single element Series is deprecated and will raise a TypeError in the future. Use float(ser.iloc[0]) instead\n", " deaths[i] = date_df['Deaths'].fillna(0).astype(int)\n", "/home/rothenbeck/Covid_19_DINN/src/preprocessing/transform_data.py:50: FutureWarning: Calling float on a single element Series is deprecated and will raise a TypeError in the future. Use float(ser.iloc[0]) instead\n", " recoveries[i] = date_df['Recovered'].fillna(0).astype(int)\n", "/home/rothenbeck/Covid_19_DINN/src/preprocessing/transform_data.py:48: FutureWarning: Calling float on a single element Series is deprecated and will raise a TypeError in the future. Use float(ser.iloc[0]) instead\n", " infections[i] = date_df['Confirmed'].fillna(0).astype(int)\n", "/home/rothenbeck/Covid_19_DINN/src/preprocessing/transform_data.py:49: FutureWarning: Calling float on a single element Series is deprecated and will raise a TypeError in the future. Use float(ser.iloc[0]) instead\n", " deaths[i] = date_df['Deaths'].fillna(0).astype(int)\n", "/home/rothenbeck/Covid_19_DINN/src/preprocessing/transform_data.py:50: FutureWarning: Calling float on a single element Series is deprecated and will raise a TypeError in the future. Use float(ser.iloc[0]) instead\n", " recoveries[i] = date_df['Recovered'].fillna(0).astype(int)\n", "/home/rothenbeck/Covid_19_DINN/src/preprocessing/transform_data.py:48: FutureWarning: Calling float on a single element Series is deprecated and will raise a TypeError in the future. Use float(ser.iloc[0]) instead\n", " infections[i] = date_df['Confirmed'].fillna(0).astype(int)\n", "/home/rothenbeck/Covid_19_DINN/src/preprocessing/transform_data.py:49: FutureWarning: Calling float on a single element Series is deprecated and will raise a TypeError in the future. Use float(ser.iloc[0]) instead\n", " deaths[i] = date_df['Deaths'].fillna(0).astype(int)\n", "/home/rothenbeck/Covid_19_DINN/src/preprocessing/transform_data.py:50: FutureWarning: Calling float on a single element Series is deprecated and will raise a TypeError in the future. Use float(ser.iloc[0]) instead\n", " recoveries[i] = date_df['Recovered'].fillna(0).astype(int)\n", "/home/rothenbeck/Covid_19_DINN/src/preprocessing/transform_data.py:48: FutureWarning: Calling float on a single element Series is deprecated and will raise a TypeError in the future. Use float(ser.iloc[0]) instead\n", " infections[i] = date_df['Confirmed'].fillna(0).astype(int)\n", "/home/rothenbeck/Covid_19_DINN/src/preprocessing/transform_data.py:49: FutureWarning: Calling float on a single element Series is deprecated and will raise a TypeError in the future. Use float(ser.iloc[0]) instead\n", " deaths[i] = date_df['Deaths'].fillna(0).astype(int)\n", "/home/rothenbeck/Covid_19_DINN/src/preprocessing/transform_data.py:50: FutureWarning: Calling float on a single element Series is deprecated and will raise a TypeError in the future. Use float(ser.iloc[0]) instead\n", " recoveries[i] = date_df['Recovered'].fillna(0).astype(int)\n", "/home/rothenbeck/Covid_19_DINN/src/preprocessing/transform_data.py:48: FutureWarning: Calling float on a single element Series is deprecated and will raise a TypeError in the future. Use float(ser.iloc[0]) instead\n", " infections[i] = date_df['Confirmed'].fillna(0).astype(int)\n", "/home/rothenbeck/Covid_19_DINN/src/preprocessing/transform_data.py:49: FutureWarning: Calling float on a single element Series is deprecated and will raise a TypeError in the future. Use float(ser.iloc[0]) instead\n", " deaths[i] = date_df['Deaths'].fillna(0).astype(int)\n", "/home/rothenbeck/Covid_19_DINN/src/preprocessing/transform_data.py:50: FutureWarning: Calling float on a single element Series is deprecated and will raise a TypeError in the future. Use float(ser.iloc[0]) instead\n", " recoveries[i] = date_df['Recovered'].fillna(0).astype(int)\n", "/home/rothenbeck/Covid_19_DINN/src/preprocessing/transform_data.py:48: FutureWarning: Calling float on a single element Series is deprecated and will raise a TypeError in the future. Use float(ser.iloc[0]) instead\n", " infections[i] = date_df['Confirmed'].fillna(0).astype(int)\n", "/home/rothenbeck/Covid_19_DINN/src/preprocessing/transform_data.py:49: FutureWarning: Calling float on a single element Series is deprecated and will raise a TypeError in the future. Use float(ser.iloc[0]) instead\n", " deaths[i] = date_df['Deaths'].fillna(0).astype(int)\n", "/home/rothenbeck/Covid_19_DINN/src/preprocessing/transform_data.py:50: FutureWarning: Calling float on a single element Series is deprecated and will raise a TypeError in the future. Use float(ser.iloc[0]) instead\n", " recoveries[i] = date_df['Recovered'].fillna(0).astype(int)\n", "/home/rothenbeck/Covid_19_DINN/src/preprocessing/transform_data.py:48: FutureWarning: Calling float on a single element Series is deprecated and will raise a TypeError in the future. Use float(ser.iloc[0]) instead\n", " infections[i] = date_df['Confirmed'].fillna(0).astype(int)\n", "/home/rothenbeck/Covid_19_DINN/src/preprocessing/transform_data.py:49: FutureWarning: Calling float on a single element Series is deprecated and will raise a TypeError in the future. Use float(ser.iloc[0]) instead\n", " deaths[i] = date_df['Deaths'].fillna(0).astype(int)\n", "/home/rothenbeck/Covid_19_DINN/src/preprocessing/transform_data.py:50: FutureWarning: Calling float on a single element Series is deprecated and will raise a TypeError in the future. Use float(ser.iloc[0]) instead\n", " recoveries[i] = date_df['Recovered'].fillna(0).astype(int)\n", "/home/rothenbeck/Covid_19_DINN/src/preprocessing/transform_data.py:48: FutureWarning: Calling float on a single element Series is deprecated and will raise a TypeError in the future. Use float(ser.iloc[0]) instead\n", " infections[i] = date_df['Confirmed'].fillna(0).astype(int)\n", "/home/rothenbeck/Covid_19_DINN/src/preprocessing/transform_data.py:49: FutureWarning: Calling float on a single element Series is deprecated and will raise a TypeError in the future. Use float(ser.iloc[0]) instead\n", " deaths[i] = date_df['Deaths'].fillna(0).astype(int)\n", "/home/rothenbeck/Covid_19_DINN/src/preprocessing/transform_data.py:50: FutureWarning: Calling float on a single element Series is deprecated and will raise a TypeError in the future. Use float(ser.iloc[0]) instead\n", " recoveries[i] = date_df['Recovered'].fillna(0).astype(int)\n", "/home/rothenbeck/Covid_19_DINN/src/preprocessing/transform_data.py:48: FutureWarning: Calling float on a single element Series is deprecated and will raise a TypeError in the future. Use float(ser.iloc[0]) instead\n", " infections[i] = date_df['Confirmed'].fillna(0).astype(int)\n", "/home/rothenbeck/Covid_19_DINN/src/preprocessing/transform_data.py:49: FutureWarning: Calling float on a single element Series is deprecated and will raise a TypeError in the future. Use float(ser.iloc[0]) instead\n", " deaths[i] = date_df['Deaths'].fillna(0).astype(int)\n", "/home/rothenbeck/Covid_19_DINN/src/preprocessing/transform_data.py:50: FutureWarning: Calling float on a single element Series is deprecated and will raise a TypeError in the future. Use float(ser.iloc[0]) instead\n", " recoveries[i] = date_df['Recovered'].fillna(0).astype(int)\n", "/home/rothenbeck/Covid_19_DINN/src/preprocessing/transform_data.py:48: FutureWarning: Calling float on a single element Series is deprecated and will raise a TypeError in the future. Use float(ser.iloc[0]) instead\n", " infections[i] = date_df['Confirmed'].fillna(0).astype(int)\n", "/home/rothenbeck/Covid_19_DINN/src/preprocessing/transform_data.py:49: FutureWarning: Calling float on a single element Series is deprecated and will raise a TypeError in the future. Use float(ser.iloc[0]) instead\n", " deaths[i] = date_df['Deaths'].fillna(0).astype(int)\n", "/home/rothenbeck/Covid_19_DINN/src/preprocessing/transform_data.py:50: FutureWarning: Calling float on a single element Series is deprecated and will raise a TypeError in the future. Use float(ser.iloc[0]) instead\n", " recoveries[i] = date_df['Recovered'].fillna(0).astype(int)\n", "/home/rothenbeck/Covid_19_DINN/src/preprocessing/transform_data.py:48: FutureWarning: Calling float on a single element Series is deprecated and will raise a TypeError in the future. Use float(ser.iloc[0]) instead\n", " infections[i] = date_df['Confirmed'].fillna(0).astype(int)\n", "/home/rothenbeck/Covid_19_DINN/src/preprocessing/transform_data.py:49: FutureWarning: Calling float on a single element Series is deprecated and will raise a TypeError in the future. Use float(ser.iloc[0]) instead\n", " deaths[i] = date_df['Deaths'].fillna(0).astype(int)\n", "/home/rothenbeck/Covid_19_DINN/src/preprocessing/transform_data.py:50: FutureWarning: Calling float on a single element Series is deprecated and will raise a TypeError in the future. Use float(ser.iloc[0]) instead\n", " recoveries[i] = date_df['Recovered'].fillna(0).astype(int)\n", "/home/rothenbeck/Covid_19_DINN/src/preprocessing/transform_data.py:48: FutureWarning: Calling float on a single element Series is deprecated and will raise a TypeError in the future. Use float(ser.iloc[0]) instead\n", " infections[i] = date_df['Confirmed'].fillna(0).astype(int)\n", "/home/rothenbeck/Covid_19_DINN/src/preprocessing/transform_data.py:49: FutureWarning: Calling float on a single element Series is deprecated and will raise a TypeError in the future. Use float(ser.iloc[0]) instead\n", " deaths[i] = date_df['Deaths'].fillna(0).astype(int)\n", "/home/rothenbeck/Covid_19_DINN/src/preprocessing/transform_data.py:50: FutureWarning: Calling float on a single element Series is deprecated and will raise a TypeError in the future. Use float(ser.iloc[0]) instead\n", " recoveries[i] = date_df['Recovered'].fillna(0).astype(int)\n", "/home/rothenbeck/Covid_19_DINN/src/preprocessing/transform_data.py:48: FutureWarning: Calling float on a single element Series is deprecated and will raise a TypeError in the future. Use float(ser.iloc[0]) instead\n", " infections[i] = date_df['Confirmed'].fillna(0).astype(int)\n", "/home/rothenbeck/Covid_19_DINN/src/preprocessing/transform_data.py:49: FutureWarning: Calling float on a single element Series is deprecated and will raise a TypeError in the future. Use float(ser.iloc[0]) instead\n", " deaths[i] = date_df['Deaths'].fillna(0).astype(int)\n", "/home/rothenbeck/Covid_19_DINN/src/preprocessing/transform_data.py:50: FutureWarning: Calling float on a single element Series is deprecated and will raise a TypeError in the future. Use float(ser.iloc[0]) instead\n", " recoveries[i] = date_df['Recovered'].fillna(0).astype(int)\n", "/home/rothenbeck/Covid_19_DINN/src/preprocessing/transform_data.py:48: FutureWarning: Calling float on a single element Series is deprecated and will raise a TypeError in the future. Use float(ser.iloc[0]) instead\n", " infections[i] = date_df['Confirmed'].fillna(0).astype(int)\n", "/home/rothenbeck/Covid_19_DINN/src/preprocessing/transform_data.py:49: FutureWarning: Calling float on a single element Series is deprecated and will raise a TypeError in the future. Use float(ser.iloc[0]) instead\n", " deaths[i] = date_df['Deaths'].fillna(0).astype(int)\n", "/home/rothenbeck/Covid_19_DINN/src/preprocessing/transform_data.py:50: FutureWarning: Calling float on a single element Series is deprecated and will raise a TypeError in the future. Use float(ser.iloc[0]) instead\n", " recoveries[i] = date_df['Recovered'].fillna(0).astype(int)\n", "/home/rothenbeck/Covid_19_DINN/src/preprocessing/transform_data.py:48: FutureWarning: Calling float on a single element Series is deprecated and will raise a TypeError in the future. Use float(ser.iloc[0]) instead\n", " infections[i] = date_df['Confirmed'].fillna(0).astype(int)\n", "/home/rothenbeck/Covid_19_DINN/src/preprocessing/transform_data.py:49: FutureWarning: Calling float on a single element Series is deprecated and will raise a TypeError in the future. Use float(ser.iloc[0]) instead\n", " deaths[i] = date_df['Deaths'].fillna(0).astype(int)\n", "/home/rothenbeck/Covid_19_DINN/src/preprocessing/transform_data.py:50: FutureWarning: Calling float on a single element Series is deprecated and will raise a TypeError in the future. Use float(ser.iloc[0]) instead\n", " recoveries[i] = date_df['Recovered'].fillna(0).astype(int)\n", "/home/rothenbeck/Covid_19_DINN/src/preprocessing/transform_data.py:48: FutureWarning: Calling float on a single element Series is deprecated and will raise a TypeError in the future. Use float(ser.iloc[0]) instead\n", " infections[i] = date_df['Confirmed'].fillna(0).astype(int)\n", "/home/rothenbeck/Covid_19_DINN/src/preprocessing/transform_data.py:49: FutureWarning: Calling float on a single element Series is deprecated and will raise a TypeError in the future. Use float(ser.iloc[0]) instead\n", " deaths[i] = date_df['Deaths'].fillna(0).astype(int)\n", "/home/rothenbeck/Covid_19_DINN/src/preprocessing/transform_data.py:50: FutureWarning: Calling float on a single element Series is deprecated and will raise a TypeError in the future. Use float(ser.iloc[0]) instead\n", " recoveries[i] = date_df['Recovered'].fillna(0).astype(int)\n", "/home/rothenbeck/Covid_19_DINN/src/preprocessing/transform_data.py:48: FutureWarning: Calling float on a single element Series is deprecated and will raise a TypeError in the future. Use float(ser.iloc[0]) instead\n", " infections[i] = date_df['Confirmed'].fillna(0).astype(int)\n", "/home/rothenbeck/Covid_19_DINN/src/preprocessing/transform_data.py:49: FutureWarning: Calling float on a single element Series is deprecated and will raise a TypeError in the future. Use float(ser.iloc[0]) instead\n", " deaths[i] = date_df['Deaths'].fillna(0).astype(int)\n", "/home/rothenbeck/Covid_19_DINN/src/preprocessing/transform_data.py:50: FutureWarning: Calling float on a single element Series is deprecated and will raise a TypeError in the future. Use float(ser.iloc[0]) instead\n", " recoveries[i] = date_df['Recovered'].fillna(0).astype(int)\n", "/home/rothenbeck/Covid_19_DINN/src/preprocessing/transform_data.py:48: FutureWarning: Calling float on a single element Series is deprecated and will raise a TypeError in the future. Use float(ser.iloc[0]) instead\n", " infections[i] = date_df['Confirmed'].fillna(0).astype(int)\n", "/home/rothenbeck/Covid_19_DINN/src/preprocessing/transform_data.py:49: FutureWarning: Calling float on a single element Series is deprecated and will raise a TypeError in the future. Use float(ser.iloc[0]) instead\n", " deaths[i] = date_df['Deaths'].fillna(0).astype(int)\n", "/home/rothenbeck/Covid_19_DINN/src/preprocessing/transform_data.py:50: FutureWarning: Calling float on a single element Series is deprecated and will raise a TypeError in the future. Use float(ser.iloc[0]) instead\n", " recoveries[i] = date_df['Recovered'].fillna(0).astype(int)\n", "/home/rothenbeck/Covid_19_DINN/src/preprocessing/transform_data.py:48: FutureWarning: Calling float on a single element Series is deprecated and will raise a TypeError in the future. Use float(ser.iloc[0]) instead\n", " infections[i] = date_df['Confirmed'].fillna(0).astype(int)\n", "/home/rothenbeck/Covid_19_DINN/src/preprocessing/transform_data.py:49: FutureWarning: Calling float on a single element Series is deprecated and will raise a TypeError in the future. Use float(ser.iloc[0]) instead\n", " deaths[i] = date_df['Deaths'].fillna(0).astype(int)\n", "/home/rothenbeck/Covid_19_DINN/src/preprocessing/transform_data.py:50: FutureWarning: Calling float on a single element Series is deprecated and will raise a TypeError in the future. Use float(ser.iloc[0]) instead\n", " recoveries[i] = date_df['Recovered'].fillna(0).astype(int)\n", "/home/rothenbeck/Covid_19_DINN/src/preprocessing/transform_data.py:48: FutureWarning: Calling float on a single element Series is deprecated and will raise a TypeError in the future. Use float(ser.iloc[0]) instead\n", " infections[i] = date_df['Confirmed'].fillna(0).astype(int)\n", "/home/rothenbeck/Covid_19_DINN/src/preprocessing/transform_data.py:49: FutureWarning: Calling float on a single element Series is deprecated and will raise a TypeError in the future. Use float(ser.iloc[0]) instead\n", " deaths[i] = date_df['Deaths'].fillna(0).astype(int)\n", "/home/rothenbeck/Covid_19_DINN/src/preprocessing/transform_data.py:50: FutureWarning: Calling float on a single element Series is deprecated and will raise a TypeError in the future. Use float(ser.iloc[0]) instead\n", " recoveries[i] = date_df['Recovered'].fillna(0).astype(int)\n", "/home/rothenbeck/Covid_19_DINN/src/preprocessing/transform_data.py:48: FutureWarning: Calling float on a single element Series is deprecated and will raise a TypeError in the future. Use float(ser.iloc[0]) instead\n", " infections[i] = date_df['Confirmed'].fillna(0).astype(int)\n", "/home/rothenbeck/Covid_19_DINN/src/preprocessing/transform_data.py:49: FutureWarning: Calling float on a single element Series is deprecated and will raise a TypeError in the future. Use float(ser.iloc[0]) instead\n", " deaths[i] = date_df['Deaths'].fillna(0).astype(int)\n", "/home/rothenbeck/Covid_19_DINN/src/preprocessing/transform_data.py:50: FutureWarning: Calling float on a single element Series is deprecated and will raise a TypeError in the future. Use float(ser.iloc[0]) instead\n", " recoveries[i] = date_df['Recovered'].fillna(0).astype(int)\n", "/home/rothenbeck/Covid_19_DINN/src/preprocessing/transform_data.py:48: FutureWarning: Calling float on a single element Series is deprecated and will raise a TypeError in the future. Use float(ser.iloc[0]) instead\n", " infections[i] = date_df['Confirmed'].fillna(0).astype(int)\n", "/home/rothenbeck/Covid_19_DINN/src/preprocessing/transform_data.py:49: FutureWarning: Calling float on a single element Series is deprecated and will raise a TypeError in the future. Use float(ser.iloc[0]) instead\n", " deaths[i] = date_df['Deaths'].fillna(0).astype(int)\n", "/home/rothenbeck/Covid_19_DINN/src/preprocessing/transform_data.py:50: FutureWarning: Calling float on a single element Series is deprecated and will raise a TypeError in the future. Use float(ser.iloc[0]) instead\n", " recoveries[i] = date_df['Recovered'].fillna(0).astype(int)\n", "/home/rothenbeck/Covid_19_DINN/src/preprocessing/transform_data.py:48: FutureWarning: Calling float on a single element Series is deprecated and will raise a TypeError in the future. Use float(ser.iloc[0]) instead\n", " infections[i] = date_df['Confirmed'].fillna(0).astype(int)\n", "/home/rothenbeck/Covid_19_DINN/src/preprocessing/transform_data.py:49: FutureWarning: Calling float on a single element Series is deprecated and will raise a TypeError in the future. Use float(ser.iloc[0]) instead\n", " deaths[i] = date_df['Deaths'].fillna(0).astype(int)\n", "/home/rothenbeck/Covid_19_DINN/src/preprocessing/transform_data.py:50: FutureWarning: Calling float on a single element Series is deprecated and will raise a TypeError in the future. Use float(ser.iloc[0]) instead\n", " recoveries[i] = date_df['Recovered'].fillna(0).astype(int)\n", "/home/rothenbeck/Covid_19_DINN/src/preprocessing/transform_data.py:48: FutureWarning: Calling float on a single element Series is deprecated and will raise a TypeError in the future. Use float(ser.iloc[0]) instead\n", " infections[i] = date_df['Confirmed'].fillna(0).astype(int)\n", "/home/rothenbeck/Covid_19_DINN/src/preprocessing/transform_data.py:49: FutureWarning: Calling float on a single element Series is deprecated and will raise a TypeError in the future. Use float(ser.iloc[0]) instead\n", " deaths[i] = date_df['Deaths'].fillna(0).astype(int)\n", "/home/rothenbeck/Covid_19_DINN/src/preprocessing/transform_data.py:50: FutureWarning: Calling float on a single element Series is deprecated and will raise a TypeError in the future. Use float(ser.iloc[0]) instead\n", " recoveries[i] = date_df['Recovered'].fillna(0).astype(int)\n", "/home/rothenbeck/Covid_19_DINN/src/preprocessing/transform_data.py:48: FutureWarning: Calling float on a single element Series is deprecated and will raise a TypeError in the future. Use float(ser.iloc[0]) instead\n", " infections[i] = date_df['Confirmed'].fillna(0).astype(int)\n", "/home/rothenbeck/Covid_19_DINN/src/preprocessing/transform_data.py:49: FutureWarning: Calling float on a single element Series is deprecated and will raise a TypeError in the future. Use float(ser.iloc[0]) instead\n", " deaths[i] = date_df['Deaths'].fillna(0).astype(int)\n", "/home/rothenbeck/Covid_19_DINN/src/preprocessing/transform_data.py:50: FutureWarning: Calling float on a single element Series is deprecated and will raise a TypeError in the future. Use float(ser.iloc[0]) instead\n", " recoveries[i] = date_df['Recovered'].fillna(0).astype(int)\n", "/home/rothenbeck/Covid_19_DINN/src/preprocessing/transform_data.py:48: FutureWarning: Calling float on a single element Series is deprecated and will raise a TypeError in the future. Use float(ser.iloc[0]) instead\n", " infections[i] = date_df['Confirmed'].fillna(0).astype(int)\n", "/home/rothenbeck/Covid_19_DINN/src/preprocessing/transform_data.py:49: FutureWarning: Calling float on a single element Series is deprecated and will raise a TypeError in the future. Use float(ser.iloc[0]) instead\n", " deaths[i] = date_df['Deaths'].fillna(0).astype(int)\n", "/home/rothenbeck/Covid_19_DINN/src/preprocessing/transform_data.py:50: FutureWarning: Calling float on a single element Series is deprecated and will raise a TypeError in the future. Use float(ser.iloc[0]) instead\n", " recoveries[i] = date_df['Recovered'].fillna(0).astype(int)\n", "/home/rothenbeck/Covid_19_DINN/src/preprocessing/transform_data.py:48: FutureWarning: Calling float on a single element Series is deprecated and will raise a TypeError in the future. Use float(ser.iloc[0]) instead\n", " infections[i] = date_df['Confirmed'].fillna(0).astype(int)\n", "/home/rothenbeck/Covid_19_DINN/src/preprocessing/transform_data.py:49: FutureWarning: Calling float on a single element Series is deprecated and will raise a TypeError in the future. Use float(ser.iloc[0]) instead\n", " deaths[i] = date_df['Deaths'].fillna(0).astype(int)\n", "/home/rothenbeck/Covid_19_DINN/src/preprocessing/transform_data.py:50: FutureWarning: Calling float on a single element Series is deprecated and will raise a TypeError in the future. Use float(ser.iloc[0]) instead\n", " recoveries[i] = date_df['Recovered'].fillna(0).astype(int)\n", "/home/rothenbeck/Covid_19_DINN/src/preprocessing/transform_data.py:48: FutureWarning: Calling float on a single element Series is deprecated and will raise a TypeError in the future. Use float(ser.iloc[0]) instead\n", " infections[i] = date_df['Confirmed'].fillna(0).astype(int)\n", "/home/rothenbeck/Covid_19_DINN/src/preprocessing/transform_data.py:49: FutureWarning: Calling float on a single element Series is deprecated and will raise a TypeError in the future. Use float(ser.iloc[0]) instead\n", " deaths[i] = date_df['Deaths'].fillna(0).astype(int)\n", "/home/rothenbeck/Covid_19_DINN/src/preprocessing/transform_data.py:50: FutureWarning: Calling float on a single element Series is deprecated and will raise a TypeError in the future. Use float(ser.iloc[0]) instead\n", " recoveries[i] = date_df['Recovered'].fillna(0).astype(int)\n", "/home/rothenbeck/Covid_19_DINN/src/preprocessing/transform_data.py:48: FutureWarning: Calling float on a single element Series is deprecated and will raise a TypeError in the future. Use float(ser.iloc[0]) instead\n", " infections[i] = date_df['Confirmed'].fillna(0).astype(int)\n", "/home/rothenbeck/Covid_19_DINN/src/preprocessing/transform_data.py:49: FutureWarning: Calling float on a single element Series is deprecated and will raise a TypeError in the future. Use float(ser.iloc[0]) instead\n", " deaths[i] = date_df['Deaths'].fillna(0).astype(int)\n", "/home/rothenbeck/Covid_19_DINN/src/preprocessing/transform_data.py:50: FutureWarning: Calling float on a single element Series is deprecated and will raise a TypeError in the future. Use float(ser.iloc[0]) instead\n", " recoveries[i] = date_df['Recovered'].fillna(0).astype(int)\n", "/home/rothenbeck/Covid_19_DINN/src/preprocessing/transform_data.py:48: FutureWarning: Calling float on a single element Series is deprecated and will raise a TypeError in the future. Use float(ser.iloc[0]) instead\n", " infections[i] = date_df['Confirmed'].fillna(0).astype(int)\n", "/home/rothenbeck/Covid_19_DINN/src/preprocessing/transform_data.py:49: FutureWarning: Calling float on a single element Series is deprecated and will raise a TypeError in the future. Use float(ser.iloc[0]) instead\n", " deaths[i] = date_df['Deaths'].fillna(0).astype(int)\n", "/home/rothenbeck/Covid_19_DINN/src/preprocessing/transform_data.py:50: FutureWarning: Calling float on a single element Series is deprecated and will raise a TypeError in the future. Use float(ser.iloc[0]) instead\n", " recoveries[i] = date_df['Recovered'].fillna(0).astype(int)\n", "/home/rothenbeck/Covid_19_DINN/src/preprocessing/transform_data.py:48: FutureWarning: Calling float on a single element Series is deprecated and will raise a TypeError in the future. Use float(ser.iloc[0]) instead\n", " infections[i] = date_df['Confirmed'].fillna(0).astype(int)\n", "/home/rothenbeck/Covid_19_DINN/src/preprocessing/transform_data.py:49: FutureWarning: Calling float on a single element Series is deprecated and will raise a TypeError in the future. Use float(ser.iloc[0]) instead\n", " deaths[i] = date_df['Deaths'].fillna(0).astype(int)\n", "/home/rothenbeck/Covid_19_DINN/src/preprocessing/transform_data.py:50: FutureWarning: Calling float on a single element Series is deprecated and will raise a TypeError in the future. Use float(ser.iloc[0]) instead\n", " recoveries[i] = date_df['Recovered'].fillna(0).astype(int)\n", "/home/rothenbeck/Covid_19_DINN/src/preprocessing/transform_data.py:48: FutureWarning: Calling float on a single element Series is deprecated and will raise a TypeError in the future. Use float(ser.iloc[0]) instead\n", " infections[i] = date_df['Confirmed'].fillna(0).astype(int)\n", "/home/rothenbeck/Covid_19_DINN/src/preprocessing/transform_data.py:49: FutureWarning: Calling float on a single element Series is deprecated and will raise a TypeError in the future. Use float(ser.iloc[0]) instead\n", " deaths[i] = date_df['Deaths'].fillna(0).astype(int)\n", "/home/rothenbeck/Covid_19_DINN/src/preprocessing/transform_data.py:50: FutureWarning: Calling float on a single element Series is deprecated and will raise a TypeError in the future. Use float(ser.iloc[0]) instead\n", " recoveries[i] = date_df['Recovered'].fillna(0).astype(int)\n", "/home/rothenbeck/Covid_19_DINN/src/preprocessing/transform_data.py:48: FutureWarning: Calling float on a single element Series is deprecated and will raise a TypeError in the future. Use float(ser.iloc[0]) instead\n", " infections[i] = date_df['Confirmed'].fillna(0).astype(int)\n", "/home/rothenbeck/Covid_19_DINN/src/preprocessing/transform_data.py:49: FutureWarning: Calling float on a single element Series is deprecated and will raise a TypeError in the future. Use float(ser.iloc[0]) instead\n", " deaths[i] = date_df['Deaths'].fillna(0).astype(int)\n", "/home/rothenbeck/Covid_19_DINN/src/preprocessing/transform_data.py:50: FutureWarning: Calling float on a single element Series is deprecated and will raise a TypeError in the future. Use float(ser.iloc[0]) instead\n", " recoveries[i] = date_df['Recovered'].fillna(0).astype(int)\n", "/home/rothenbeck/Covid_19_DINN/src/preprocessing/transform_data.py:48: FutureWarning: Calling float on a single element Series is deprecated and will raise a TypeError in the future. Use float(ser.iloc[0]) instead\n", " infections[i] = date_df['Confirmed'].fillna(0).astype(int)\n", "/home/rothenbeck/Covid_19_DINN/src/preprocessing/transform_data.py:49: FutureWarning: Calling float on a single element Series is deprecated and will raise a TypeError in the future. Use float(ser.iloc[0]) instead\n", " deaths[i] = date_df['Deaths'].fillna(0).astype(int)\n", "/home/rothenbeck/Covid_19_DINN/src/preprocessing/transform_data.py:50: FutureWarning: Calling float on a single element Series is deprecated and will raise a TypeError in the future. Use float(ser.iloc[0]) instead\n", " recoveries[i] = date_df['Recovered'].fillna(0).astype(int)\n", "/home/rothenbeck/Covid_19_DINN/src/preprocessing/transform_data.py:48: FutureWarning: Calling float on a single element Series is deprecated and will raise a TypeError in the future. Use float(ser.iloc[0]) instead\n", " infections[i] = date_df['Confirmed'].fillna(0).astype(int)\n", "/home/rothenbeck/Covid_19_DINN/src/preprocessing/transform_data.py:49: FutureWarning: Calling float on a single element Series is deprecated and will raise a TypeError in the future. Use float(ser.iloc[0]) instead\n", " deaths[i] = date_df['Deaths'].fillna(0).astype(int)\n", "/home/rothenbeck/Covid_19_DINN/src/preprocessing/transform_data.py:50: FutureWarning: Calling float on a single element Series is deprecated and will raise a TypeError in the future. Use float(ser.iloc[0]) instead\n", " recoveries[i] = date_df['Recovered'].fillna(0).astype(int)\n", "/home/rothenbeck/Covid_19_DINN/src/preprocessing/transform_data.py:48: FutureWarning: Calling float on a single element Series is deprecated and will raise a TypeError in the future. Use float(ser.iloc[0]) instead\n", " infections[i] = date_df['Confirmed'].fillna(0).astype(int)\n", "/home/rothenbeck/Covid_19_DINN/src/preprocessing/transform_data.py:49: FutureWarning: Calling float on a single element Series is deprecated and will raise a TypeError in the future. Use float(ser.iloc[0]) instead\n", " deaths[i] = date_df['Deaths'].fillna(0).astype(int)\n", "/home/rothenbeck/Covid_19_DINN/src/preprocessing/transform_data.py:50: FutureWarning: Calling float on a single element Series is deprecated and will raise a TypeError in the future. Use float(ser.iloc[0]) instead\n", " recoveries[i] = date_df['Recovered'].fillna(0).astype(int)\n", "/home/rothenbeck/Covid_19_DINN/src/preprocessing/transform_data.py:48: FutureWarning: Calling float on a single element Series is deprecated and will raise a TypeError in the future. Use float(ser.iloc[0]) instead\n", " infections[i] = date_df['Confirmed'].fillna(0).astype(int)\n", "/home/rothenbeck/Covid_19_DINN/src/preprocessing/transform_data.py:49: FutureWarning: Calling float on a single element Series is deprecated and will raise a TypeError in the future. Use float(ser.iloc[0]) instead\n", " deaths[i] = date_df['Deaths'].fillna(0).astype(int)\n", "/home/rothenbeck/Covid_19_DINN/src/preprocessing/transform_data.py:50: FutureWarning: Calling float on a single element Series is deprecated and will raise a TypeError in the future. Use float(ser.iloc[0]) instead\n", " recoveries[i] = date_df['Recovered'].fillna(0).astype(int)\n", "/home/rothenbeck/Covid_19_DINN/src/preprocessing/transform_data.py:48: FutureWarning: Calling float on a single element Series is deprecated and will raise a TypeError in the future. Use float(ser.iloc[0]) instead\n", " infections[i] = date_df['Confirmed'].fillna(0).astype(int)\n", "/home/rothenbeck/Covid_19_DINN/src/preprocessing/transform_data.py:49: FutureWarning: Calling float on a single element Series is deprecated and will raise a TypeError in the future. Use float(ser.iloc[0]) instead\n", " deaths[i] = date_df['Deaths'].fillna(0).astype(int)\n", "/home/rothenbeck/Covid_19_DINN/src/preprocessing/transform_data.py:50: FutureWarning: Calling float on a single element Series is deprecated and will raise a TypeError in the future. Use float(ser.iloc[0]) instead\n", " recoveries[i] = date_df['Recovered'].fillna(0).astype(int)\n", "/home/rothenbeck/Covid_19_DINN/src/preprocessing/transform_data.py:48: FutureWarning: Calling float on a single element Series is deprecated and will raise a TypeError in the future. Use float(ser.iloc[0]) instead\n", " infections[i] = date_df['Confirmed'].fillna(0).astype(int)\n", "/home/rothenbeck/Covid_19_DINN/src/preprocessing/transform_data.py:49: FutureWarning: Calling float on a single element Series is deprecated and will raise a TypeError in the future. Use float(ser.iloc[0]) instead\n", " deaths[i] = date_df['Deaths'].fillna(0).astype(int)\n", "/home/rothenbeck/Covid_19_DINN/src/preprocessing/transform_data.py:50: FutureWarning: Calling float on a single element Series is deprecated and will raise a TypeError in the future. Use float(ser.iloc[0]) instead\n", " recoveries[i] = date_df['Recovered'].fillna(0).astype(int)\n", "/home/rothenbeck/Covid_19_DINN/src/preprocessing/transform_data.py:48: FutureWarning: Calling float on a single element Series is deprecated and will raise a TypeError in the future. Use float(ser.iloc[0]) instead\n", " infections[i] = date_df['Confirmed'].fillna(0).astype(int)\n", "/home/rothenbeck/Covid_19_DINN/src/preprocessing/transform_data.py:49: FutureWarning: Calling float on a single element Series is deprecated and will raise a TypeError in the future. Use float(ser.iloc[0]) instead\n", " deaths[i] = date_df['Deaths'].fillna(0).astype(int)\n", "/home/rothenbeck/Covid_19_DINN/src/preprocessing/transform_data.py:50: FutureWarning: Calling float on a single element Series is deprecated and will raise a TypeError in the future. Use float(ser.iloc[0]) instead\n", " recoveries[i] = date_df['Recovered'].fillna(0).astype(int)\n", "/home/rothenbeck/Covid_19_DINN/src/preprocessing/transform_data.py:48: FutureWarning: Calling float on a single element Series is deprecated and will raise a TypeError in the future. Use float(ser.iloc[0]) instead\n", " infections[i] = date_df['Confirmed'].fillna(0).astype(int)\n", "/home/rothenbeck/Covid_19_DINN/src/preprocessing/transform_data.py:49: FutureWarning: Calling float on a single element Series is deprecated and will raise a TypeError in the future. Use float(ser.iloc[0]) instead\n", " deaths[i] = date_df['Deaths'].fillna(0).astype(int)\n", "/home/rothenbeck/Covid_19_DINN/src/preprocessing/transform_data.py:50: FutureWarning: Calling float on a single element Series is deprecated and will raise a TypeError in the future. Use float(ser.iloc[0]) instead\n", " recoveries[i] = date_df['Recovered'].fillna(0).astype(int)\n" ] } ], "source": [ "transform_jh_germany_data(plotter, model=\"SIR\")" ] } ], "metadata": { "kernelspec": { "display_name": "PINN", "language": "python", "name": "python3" }, "language_info": { "codemirror_mode": { "name": "ipython", "version": 3 }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", "version": "3.11.7" } }, "nbformat": 4, "nbformat_minor": 2 }