merging
This commit is contained in:
@@ -6,11 +6,9 @@ class BatchCodeTableFactory:
|
||||
|
||||
def __init__(self, dataFrame: pd.DataFrame):
|
||||
self.dataFrame = dataFrame
|
||||
self.companyColumnAdder = CompanyColumnAdder(dataFrame)
|
||||
self.countryBatchCodeTable = SummationTableFactory.createSummationTable(dataFrame.groupby(['COUNTRY', 'VAX_LOT']))
|
||||
|
||||
def createGlobalBatchCodeTable(self, countriesAsList = False):
|
||||
return self._postProcess(SummationTableFactory.createSummationTable(self.dataFrame.groupby('VAX_LOT')), countriesAsList)
|
||||
|
||||
def createGlobalBatchCodeTable(self):
|
||||
return self._postProcess(SummationTableFactory.createSummationTable(self.dataFrame.groupby('VAX_LOT')))
|
||||
|
||||
def createBatchCodeTableByCountry(self, country):
|
||||
return self._postProcess(self._getBatchCodeTableByCountry(country))
|
||||
@@ -37,4 +35,4 @@ class BatchCodeTableFactory:
|
||||
return SummationTableFactory.createSummationTable(self.dataFrame.groupby(['COUNTRY', 'VAX_LOT']))
|
||||
|
||||
def _getEmptyBatchCodeTable(self, countryBatchCodeTable):
|
||||
return countryBatchCodeTable[0:0].droplevel(0)
|
||||
return countryBatchCodeTable[0:0].droplevel(0)
|
||||
Reference in New Issue
Block a user