removing docs/data

This commit is contained in:
frankknoll
2023-04-02 20:54:49 +02:00
parent 81e63b2963
commit fedb6c44bf
12 changed files with 0 additions and 18 deletions

View File

@@ -22,7 +22,6 @@ class BatchCodeTableFactory:
def _postProcess(self, batchCodeTable, countriesAsList):
batchCodeTable = self.companyColumnAdder.addCompanyColumn(batchCodeTable)
BatchCodeTableFactory._convertCountries(batchCodeTable, countriesAsList)
batchCodeTable = batchCodeTable[
[
'Adverse Reaction Reports',
@@ -30,17 +29,11 @@ class BatchCodeTableFactory:
'Disabilities',
'Life Threatening Illnesses',
'Company',
'Countries',
'Severe reports',
'Lethality'
]]
return batchCodeTable.sort_values(by = 'Severe reports', ascending = False)
@staticmethod
def _convertCountries(batchCodeTable, countriesAsList):
if not countriesAsList:
batchCodeTable['Countries'] = batchCodeTable['Countries'].apply(', '.join)
def _getBatchCodeTableByCountry(self, country):
if country in self.countryBatchCodeTable.index:
return self.countryBatchCodeTable.loc[country]