From 55f8f2c2eea66689a58c50f73774acaf7c36ba2d Mon Sep 17 00:00:00 2001 From: frankknoll Date: Tue, 8 Feb 2022 18:00:10 +0100 Subject: [PATCH] refactoring --- HowBadIsMyBatch.ipynb | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/HowBadIsMyBatch.ipynb b/HowBadIsMyBatch.ipynb index f15b0b72060..ae4286a335d 100644 --- a/HowBadIsMyBatch.ipynb +++ b/HowBadIsMyBatch.ipynb @@ -1117,15 +1117,15 @@ "metadata": {}, "outputs": [], "source": [ - "def createAndSaveAndDisplayBatchCodeTableByCountry(country):\n", + "def createAndSaveAndDisplayBatchCodeTableByCountry(nonDomesticVaers, country):\n", " batchCodeTable = InternationalLotTableFactory.createBatchCodeTableByCountry(nonDomesticVaers, country)\n", " batchCodeTable = batchCodeTable[batchCodeTable['Total reports'] > 50]\n", " saveDataFrameAsExcelFile(batchCodeTable, 'results/international/' + country + '.xlsx')\n", " display(country + \":\", batchCodeTable)\n", "\n", - "def createAndSaveAndDisplayBatchCodeTablesByCountry(countries):\n", + "def createAndSaveAndDisplayBatchCodeTablesByCountry(nonDomesticVaers, countries):\n", " for country in countries:\n", - " createAndSaveAndDisplayBatchCodeTableByCountry(country)" + " createAndSaveAndDisplayBatchCodeTableByCountry(nonDomesticVaers, country)" ] }, { @@ -1136,6 +1136,7 @@ "outputs": [], "source": [ "createAndSaveAndDisplayBatchCodeTablesByCountry(\n", + " nonDomesticVaers,\n", " [\n", " 'United Kingdom',\n", " 'France',\n",