diff --git a/src/CountriesByBatchcodeProvider.py b/src/CountriesByBatchcodeProvider.py index 297459ab518..1a45bbfc293 100644 --- a/src/CountriesByBatchcodeProvider.py +++ b/src/CountriesByBatchcodeProvider.py @@ -1,7 +1,5 @@ import pandas as pd -from BatchCodeTableFactory import BatchCodeTableFactory from InternationalVaersCovid19Provider import getInternationalVaersCovid19 -from SummationTableFactory import SummationTableFactory from CountryCountsByBatchcodeTablesMerger import CountryCountsByBatchcodeTablesMerger @@ -33,23 +31,5 @@ def _combineCountryCountsByBatchcodeTables(countryCountsByClickedBatchcode, coun return countryCountsByBatchcode -def getCountriesByClickedBatchcode(): - return (CountryCountsByBatchcodeTablesMerger - .getCountryCountsByClickedBatchcodeTable() - .reset_index(level = 'COUNTRY') - .groupby('VAX_LOT') - .agg( - Countries = - pd.NamedAgg( - column = 'COUNTRY', - aggfunc = SummationTableFactory.sortCountries))) - - -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)), :] \ No newline at end of file