adding control column
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user