adding Symptoms column to DataTable

This commit is contained in:
frankknoll
2023-01-26 08:44:25 +01:00
parent 30f66576c8
commit 7a3074d3da
114 changed files with 586697 additions and 121 deletions

View File

@@ -22,6 +22,7 @@ class BatchCodeTableFactory:
def _postProcess(self, batchCodeTable):
batchCodeTable = self.companyColumnAdder.addCompanyColumn(batchCodeTable)
batchCodeTable['Symptoms'] = '{"Circulatory collapse":1,"Hyperhidrosis":1}'
batchCodeTable = batchCodeTable[
[
'Adverse Reaction Reports',
@@ -31,7 +32,8 @@ class BatchCodeTableFactory:
'Company',
'Countries',
'Severe reports',
'Lethality'
'Lethality',
'Symptoms'
]]
return batchCodeTable.sort_values(by = 'Severe reports', ascending = False)

View File

@@ -35,7 +35,8 @@ def _createAndSaveBatchCodeTableForCountry(createBatchCodeTableForCountry, count
'Company',
'Countries',
'Severe reports',
'Lethality'
'Lethality',
'Symptoms'
]]
IOUtils.saveDataFrame(
batchCodeTable,