" pop = 1.e6 / 1000 * population[population.index == co]['Value'][0]\n",
"# print(pop)\n",
" beds_vs_deaths.loc[co, 'deaths per 1000'] = dc / pop\n",
"# xs = beds_vs_deaths[\"deaths per 1000\"]\n",
"# ys = beds_vs_deaths[\"beds per 1000\"]\n",
"# plt.scatter(xs, ys)\n",
"# plt.show()\n",
"beds_vs_deaths.plot(\"beds per 1000\", \"deaths per 1000\", style='.')"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"for the selected countries we see that after having at least 8 beds per 1000 inhabitants the death rate is very close to 0. One could now verify if this holds true for all the other countries too."