removing unused code
This commit is contained in:
@@ -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)), :]
|
||||
Reference in New Issue
Block a user