From a06ce064796b4a1b02a2c6b609e62f36b680e3ff Mon Sep 17 00:00:00 2001 From: frankknoll Date: Mon, 7 Feb 2022 14:04:21 +0100 Subject: [PATCH] refactoring --- HowBadIsMyBatch.ipynb | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/HowBadIsMyBatch.ipynb b/HowBadIsMyBatch.ipynb index f9a08e764b7..548fbbefc3c 100644 --- a/HowBadIsMyBatch.ipynb +++ b/HowBadIsMyBatch.ipynb @@ -196,11 +196,6 @@ " def __init__(self, dataFrame : pd.DataFrame):\n", " self.dataFrame = dataFrame\n", "\n", - " def createBatchCodeTable(self):\n", - " batchCodeTable = BatchCodeTableHelper._createSevereEffectsBatchCodeTable(self.dataFrame.groupby('VAX_LOT'))\n", - " batchCodeTable = batchCodeTable[['ADRs', 'DEATHS', 'DISABILITIES', 'LIFE THREATENING ILLNESSES']]\n", - " return batchCodeTable.sort_values(by = 'ADRs', ascending = False)\n", - "\n", " # create table from https://www.howbadismybatch.com/combined.html\n", " def createSevereEffectsBatchCodeTable(self):\n", " batchCodeTable = BatchCodeTableHelper._createSevereEffectsBatchCodeTable(self.dataFrame.groupby('VAX_LOT'))\n", @@ -255,7 +250,7 @@ " def createBatchCodeTable(dataFrame : pd.DataFrame, manufacturer, dose):\n", " dataFrame = DataFrameFilter().filterByCovid19(dataFrame)\n", " dataFrame = DataFrameFilter().filterBy(dataFrame, manufacturer = manufacturer, dose = dose)\n", - " return BatchCodeTableHelper(dataFrame).createBatchCodeTable()\n", + " return BatchCodeTableHelper(dataFrame).createSevereEffectsBatchCodeTable()[['ADRs', 'DEATHS', 'DISABILITIES', 'LIFE THREATENING ILLNESSES']]\n", "\n", " # create table from https://www.howbadismybatch.com/combined.html\n", " @staticmethod\n",