adding control column

This commit is contained in:
frankknoll
2023-01-25 11:13:50 +01:00
parent b9c7b2789d
commit 7ef46c8ee3
26 changed files with 99 additions and 305 deletions

View File

@@ -24,6 +24,19 @@ def _createAndSaveBatchCodeTableForCountry(createBatchCodeTableForCountry, count
batchCodeTable['Adverse Reaction Reports'] < minADRsForLethality,
['Severe reports', 'Lethality']
] = [np.nan, np.nan]
batchCodeTable = batchCodeTable.reset_index();
batchCodeTable = batchCodeTable[
[
'Batch',
'Adverse Reaction Reports',
'Deaths',
'Disabilities',
'Life Threatening Illnesses',
'Company',
'Countries',
'Severe reports',
'Lethality'
]]
IOUtils.saveDataFrame(
batchCodeTable,
'../docs/data/batchCodeTables/' + country)

View File

@@ -17,7 +17,7 @@ class IOUtils:
@staticmethod
def saveDataFrameAsHtml(dataFrame, file):
IOUtils.ensurePath(file)
dataFrame.reset_index().to_html(
dataFrame.to_html(
file + '.html',
index = False,
table_id = 'batchCodeTable',
@@ -28,7 +28,7 @@ class IOUtils:
@staticmethod
def saveDataFrameAsJson(dataFrame, file):
IOUtils.ensurePath(file)
dataFrame.reset_index().to_json(
dataFrame.to_json(
file + '.json',
orient = "split",
index = False)

View File

@@ -14,4 +14,8 @@ jupyter kernelspec list
conda env export --from-history > environment.yml
conda env create -f environment.yml
internationalVaersCovid19.reset_index()['VAERS_ID'].value_counts()
www.HowBadIsMyBatch.info
/etc/apache2/sites-available/HowBadIsMyBatch.conf
https://datatables.net/examples/api/row_details.html
https://www.datatables.net/blog/2017-03-31