updating GA data: 20230129-20230329

This commit is contained in:
frankknoll
2023-03-30 07:55:06 +02:00
parent c2575da22b
commit 755b164d56
6 changed files with 1151 additions and 756 deletions

View File

@@ -3,6 +3,7 @@ from CompletedBatchcodeColumnAdder import CompletedBatchcodeColumnAdder
from BatchcodeCompletion import BatchcodeCompletion
from CountriesColumnAdder import CountriesColumnAdder
from BatchCodeTableFactory import BatchCodeTableFactory
from InternationalVaersCovid19Provider import getInternationalVaersCovid19
def getCountriesByCompletedBatchcode(internationalVaersCovid19):
result = _readExploration('data/Country By Batchcode Search Term.csv', indexName = 'Batchcode Search Term')
@@ -31,4 +32,10 @@ def _readExploration(csvFile, indexName):
exploration.drop(columns='Totals', inplace=True)
for column in exploration.columns:
exploration[column] = exploration[column].astype('int64')
return exploration
return exploration
def getCountriesByBatchcodeBeforeDeletion():
internationalVaersCovid19 = getInternationalVaersCovid19(dataDir = 'VAERSBeforeDeletion', years = [2020, 2021, 2022])
batchCodeTable = BatchCodeTableFactory(internationalVaersCovid19).createGlobalBatchCodeTable()
countriesByBatchcodeBeforeDeletion = batchCodeTable[['Countries']]
return countriesByBatchcodeBeforeDeletion