filterByBatchcodes()

This commit is contained in:
frankknoll
2023-06-10 17:50:10 +02:00
parent 79a11161e6
commit fe87328904
5 changed files with 46 additions and 53019 deletions

View File

@@ -24,7 +24,7 @@
"from HistogramFactoryAndPersister import createAndSaveGlobalHistograms\n",
"from BatchCodeTableFactory import BatchCodeTableFactory\n",
"from Column2DataframeAdder import addColumn2Dataframe\n",
"from CountriesByBatchcodeProvider import getCountryCountsByBatchcodeTable\n",
"from CountriesByBatchcodeProvider import getCountryCountsByBatchcodeTable, filterByBatchcodes\n",
"from CountryCountsByBatchcodeTable2BarChartDescriptionTableConverter import CountryCountsByBatchcodeTable2BarChartDescriptionTableConverter\n"
]
},
@@ -178,22 +178,12 @@
{
"cell_type": "code",
"execution_count": null,
"id": "9588a10c",
"metadata": {},
"outputs": [],
"source": [
"countryCountsByBatchcode = getCountryCountsByBatchcodeTable()\n",
"countryCountsByBatchcode"
]
},
{
"cell_type": "code",
"execution_count": 30,
"id": "70fcc420",
"metadata": {},
"outputs": [],
"source": [
"# FK-TODO: nur die Batchcodes von countryCountsByBatchcode beibehalten, die auch in batchCodeTable vorkommen"
"countryCountsByBatchcode = filterByBatchcodes(getCountryCountsByBatchcodeTable(), batchCodeTable['Batch'].values)\n",
"countryCountsByBatchcode"
]
},
{