refactoring

This commit is contained in:
frankknoll
2023-02-16 15:03:58 +01:00
parent 97ec1683ce
commit 03ba89bcd5

View File

@@ -16,5 +16,5 @@ def createAndSaveHistogramsForCountries(symptomByBatchcodeTable):
explodedTable = MultiIndexExploder.explodeMultiIndexOfTable(dictByBatchcodeTable) explodedTable = MultiIndexExploder.explodeMultiIndexOfTable(dictByBatchcodeTable)
histogramDescriptionTable = HistogramDescriptionTableFactory.createHistogramDescriptionTable(explodedTable) histogramDescriptionTable = HistogramDescriptionTableFactory.createHistogramDescriptionTable(explodedTable)
for country, histogramDescriptionTableForCountry in histogramDescriptionTable.groupby('COUNTRY'): for country, histogramDescriptionTableForCountry in histogramDescriptionTable.groupby('COUNTRY'):
print(country, ':') print(country)
saveHistograms(histogramDescriptionTableForCountry, country) saveHistograms(histogramDescriptionTableForCountry, country)