deleteEntriesWithADRsLessThanOrEqual from batchCodeTable
This commit is contained in:
@@ -1,7 +1,8 @@
|
|||||||
import numpy as np
|
import numpy as np
|
||||||
|
|
||||||
def createGlobalBatchCodeTable(minADRsForLethality, batchCodeTableFactory):
|
def createGlobalBatchCodeTable(deleteEntriesWithADRsLessThanOrEqual, minADRsForLethality, batchCodeTableFactory):
|
||||||
batchCodeTable = batchCodeTableFactory.createGlobalBatchCodeTable()
|
batchCodeTable = batchCodeTableFactory.createGlobalBatchCodeTable()
|
||||||
|
batchCodeTable = batchCodeTable[~(batchCodeTable['Adverse Reaction Reports'] <= deleteEntriesWithADRsLessThanOrEqual)]
|
||||||
batchCodeTable.index.set_names("Batch", inplace=True)
|
batchCodeTable.index.set_names("Batch", inplace=True)
|
||||||
if minADRsForLethality is not None:
|
if minADRsForLethality is not None:
|
||||||
batchCodeTable.loc[
|
batchCodeTable.loc[
|
||||||
|
|||||||
@@ -131,6 +131,7 @@
|
|||||||
"outputs": [],
|
"outputs": [],
|
||||||
"source": [
|
"source": [
|
||||||
"batchCodeTable = createGlobalBatchCodeTable(\n",
|
"batchCodeTable = createGlobalBatchCodeTable(\n",
|
||||||
|
" deleteEntriesWithADRsLessThanOrEqual = 1,\n",
|
||||||
" minADRsForLethality = 100,\n",
|
" minADRsForLethality = 100,\n",
|
||||||
" batchCodeTableFactory = BatchCodeTableFactory(internationalVaersCovid19))\n",
|
" batchCodeTableFactory = BatchCodeTableFactory(internationalVaersCovid19))\n",
|
||||||
"batchCodeTable"
|
"batchCodeTable"
|
||||||
|
|||||||
Reference in New Issue
Block a user