adding columns OVERALL_DOSES_SHIPPED and "Adverse Reaction Reports"

This commit is contained in:
frankknoll
2023-03-10 20:48:50 +01:00
parent 095f7f0b4c
commit bc03ef5277
4 changed files with 45 additions and 2 deletions

View File

@@ -0,0 +1,16 @@
import pandas as pd
# FK-TODO: DRY with ADRColumnAdder
class OVERALL_DOSES_SHIPPEDColumnAdder:
def __init__(self, OVERALL_DOSES_SHIPPED_by_LOT_NUMBER):
self.OVERALL_DOSES_SHIPPED_by_LOT_NUMBER = OVERALL_DOSES_SHIPPED_by_LOT_NUMBER
def addColumn(self, vaccineDistributionByZipcode):
return pd.merge(
vaccineDistributionByZipcode,
self.OVERALL_DOSES_SHIPPED_by_LOT_NUMBER,
how = 'left',
left_on = 'LOT_NUMBER',
right_index = True,
validate = 'many_to_one')