updating html file with vaccines from table

This commit is contained in:
frankknoll
2023-10-10 10:30:26 +02:00
parent e457568ef6
commit 16b5d7a57f
4 changed files with 215 additions and 17 deletions

View File

@@ -205,18 +205,6 @@
"countryCountsByBatchcode"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "0d755bc8",
"metadata": {},
"outputs": [],
"source": [
"# df = countryCountsByBatchcode.loc[(slice(None), 'Germany'), :][['COUNTRY_COUNT_BY_VAX_LOT Clicked']].sort_values(by = 'COUNTRY_COUNT_BY_VAX_LOT Clicked', ascending = False)\n",
"symptomByVaccineInPercent = countryCountsByBatchcode.loc[(slice(None), 'Germany'), :].sort_values(by = 'COUNTRY_COUNT_BY_VAX_LOT Clicked', ascending = False)\n",
"symptomByVaccineInPercent"
]
},
{
"cell_type": "code",
"execution_count": null,
@@ -437,6 +425,17 @@
"# Symptoms caused by Vaccines\n"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "5cd9935f",
"metadata": {},
"outputs": [],
"source": [
"from SymptomsCausedByVaccines.HtmlUpdater import updateHtmlFile\n",
"import pandas as pd"
]
},
{
"cell_type": "code",
"execution_count": null,
@@ -444,13 +443,11 @@
"metadata": {},
"outputs": [],
"source": [
"import pandas as pd\n",
"\n",
"symptomByVaccineInPercent = pd.read_csv(\n",
"symptomByVaccine = pd.read_csv(\n",
" 'data/ratings-1990-2022.csv',\n",
" index_col = 'VAX_TYPE',\n",
" usecols = lambda columnName: columnName != 'Unnamed: 0')\n",
"symptomByVaccineInPercent"
"symptomByVaccine"
]
},
{
@@ -460,7 +457,20 @@
"metadata": {},
"outputs": [],
"source": [
"symptomByVaccineInPercent.loc['COVID19'].sum()"
"symptomByVaccine.loc['COVID19'].sum()"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "803dfbef",
"metadata": {},
"outputs": [],
"source": [
"updateHtmlFile(\n",
" symptomByVaccine,\n",
" htmlFile = \"../docs/SymptomsCausedByVaccines/index.html\",\n",
" lastUpdated = dateProvider.getLastUpdatedDataSource())"
]
}
],