removing unused code

This commit is contained in:
frankknoll
2023-06-11 10:45:31 +02:00
parent 7f8e4c1b20
commit 2b1e501600

View File

@@ -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)), :]