restoreVAERSBeforeDeletionFolder()

This commit is contained in:
Frank Knoll
2024-04-25 12:08:21 +02:00
parent 02a82d8884
commit 21c00eb06c
6 changed files with 28 additions and 86 deletions

View File

@@ -3,14 +3,14 @@ from InternationalVaersCovid19Provider import getInternationalVaersCovid19Before
from CountryCountsByBatchcodeTablesMerger import CountryCountsByBatchcodeTablesMerger
def getCountryCountsByBatchcodeTable():
def getCountryCountsByBatchcodeTable(vaersBeforeDeletionDataDir):
return _combineCountryCountsByBatchcodeTables(
countryCountsByClickedBatchcode = CountryCountsByBatchcodeTablesMerger.getCountryCountsByClickedBatchcodeTable(),
countryCountsByBatchcodeBeforeDeletion = _getCountryCountsByBatchcodeBeforeDeletion())
countryCountsByBatchcodeBeforeDeletion = _getCountryCountsByBatchcodeBeforeDeletion(vaersBeforeDeletionDataDir))
def _getCountryCountsByBatchcodeBeforeDeletion():
return (getInternationalVaersCovid19BeforeDeletion()
def _getCountryCountsByBatchcodeBeforeDeletion(vaersBeforeDeletionDataDir):
return (getInternationalVaersCovid19BeforeDeletion(vaersBeforeDeletionDataDir)
.groupby('VAX_LOT')
['COUNTRY'].value_counts()
.to_frame(name = 'COUNTRY_COUNT_BY_VAX_LOT'))