From 2b1e5016009c1428a016857207d5e52febdcd906 Mon Sep 17 00:00:00 2001 From: frankknoll Date: Sun, 11 Jun 2023 10:45:31 +0200 Subject: [PATCH] removing unused code --- src/CountriesByBatchcodeProvider.py | 20 -------------------- 1 file changed, 20 deletions(-) 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