refactoring

This commit is contained in:
frankknoll
2023-03-31 12:40:58 +02:00
parent 85c5a0ee60
commit 49db8cde8f
2 changed files with 30 additions and 11 deletions

View File

@@ -197,30 +197,48 @@
"metadata": {},
"outputs": [],
"source": [
"#res = pd.merge(\n",
"# batchCodeTable,\n",
"# countriesByClickedBatchcode,\n",
"# how = 'left',\n",
"# left_index = True,\n",
"# right_index = True,\n",
"# validate = 'one_to_one')\n",
"#res"
"from BatchCodeTableFactory import BatchCodeTableFactory\n",
"\n",
"batchCodeTable = BatchCodeTableFactory(internationalVaersCovid19).createGlobalBatchCodeTable(countriesAsList = True)\n",
"batchCodeTable"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "b36ea0d4",
"id": "96d4a25c",
"metadata": {},
"outputs": [],
"source": [
"# res[~res['batchCodeTableCountries guessed'].isna()].to_excel('tmp/tableWithCountriesGuessed.xlsx')"
"batchCodeTable['Countries']"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "89c65459",
"id": "cefbcdc3",
"metadata": {},
"outputs": [],
"source": [
"countriesByBatchcodeBeforeDeletion['Countries']"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "d9b2bc07",
"metadata": {},
"outputs": [],
"source": [
"from CountriesMerger import CountriesMerger\n",
"\n",
"CountriesMerger.mergeSrcIntoDst(dst = batchCodeTable['Countries'], src = countriesByBatchcodeBeforeDeletion['Countries'])"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "40321fd4",
"metadata": {},
"outputs": [],
"source": [