This commit is contained in:
frankknoll
2023-06-09 16:46:49 +02:00
parent e1fedea71f
commit c2f4182fea
9651 changed files with 9153 additions and 17344 deletions

View File

@@ -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)