filterByBatchcodes()

This commit is contained in:
frankknoll
2023-06-10 17:50:10 +02:00
parent 79a11161e6
commit fe87328904
5 changed files with 46 additions and 53019 deletions

View File

@@ -49,3 +49,7 @@ def getCountriesByBatchcodeBeforeDeletion():
internationalVaersCovid19 = getInternationalVaersCovid19(dataDir = 'VAERS/VAERSBeforeDeletion', years = [2020, 2021, 2022])
batchCodeTable = BatchCodeTableFactory(internationalVaersCovid19).createGlobalBatchCodeTable(countriesAsList = True)
return batchCodeTable[['Countries']]
def filterByBatchcodes(countryCountsByBatchcode, batchcodes2Retain):
return countryCountsByBatchcode.loc[(batchcodes2Retain, slice(None)), :]