starting Symptoms caused by COVID Lots

This commit is contained in:
frankknoll
2023-11-07 12:20:36 +01:00
parent 99d6a1e19a
commit a16478d225
13046 changed files with 13143 additions and 0 deletions

View File

@@ -539,6 +539,104 @@
" vaccines = list(prrByVaccineAndSymptom.index),\n",
" htmlFile = \"../docs/SymptomsCausedByVaccines/index.html\")"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"# Symptoms caused by COVID Lots"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"prrByLotAndSymptom = pd.read_excel(\n",
" io = 'data/symcolumns500.xlsx',\n",
" index_col = 'VAX_LOT')\n",
"prrByLotAndSymptom\n"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"prrByLotBySymptom = PrrSeriesFactory.getPrrByVaccineBySymptom(prrByLotAndSymptom)\n",
"prrByLotBySymptom"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"prrBySymptomByLot = PrrSeriesFactory.getPrrBySymptomByVaccine(prrByLotAndSymptom)\n",
"prrBySymptomByLot"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"prrByLotBySymptomWithoutZeroPrrs = PrrSeriesTransformer.filterByNonZeroPrrs(prrByLotBySymptom)\n",
"prrByLotBySymptomWithoutZeroPrrs"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"prrBySymptomByLotWithHighPrrs = PrrSeriesTransformer.filterByHighPrrs(prrBySymptomByLot)\n",
"prrBySymptomByLotWithHighPrrs"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"saveProportionalReportingRatios(\n",
" prrByLotBySymptomWithoutZeroPrrs,\n",
" directory = os.path.normpath(os.getcwd() + '/../docs/data/SymptomsCausedByCOVIDLots/ProportionalReportingRatios/symptoms'))"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"saveProportionalReportingRatios(\n",
" prrBySymptomByLotWithHighPrrs,\n",
" directory = os.path.normpath(os.getcwd() + '/../docs/data/SymptomsCausedByCOVIDLots/ProportionalReportingRatios/vaccines'))"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"updateHtmlFile(\n",
" symptoms = list(prrByLotAndSymptom.columns),\n",
" vaccines = list(prrByLotAndSymptom.index),\n",
" htmlFile = \"../docs/SymptomsCausedByCOVIDLots/index.html\")"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": []
}
],
"metadata": {