updating html file with vaccines from table
This commit is contained in:
@@ -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())"
|
||||
]
|
||||
}
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user