refactoring
This commit is contained in:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user