deleteEntriesWithADRsLessThanOrEqual from batchCodeTable

This commit is contained in:
frankknoll
2023-04-17 08:46:12 +02:00
parent 3029ae9831
commit 1ec77c3fe9
2 changed files with 3 additions and 1 deletions

View File

@@ -1,7 +1,8 @@
import numpy as np
def createGlobalBatchCodeTable(minADRsForLethality, batchCodeTableFactory):
def createGlobalBatchCodeTable(deleteEntriesWithADRsLessThanOrEqual, minADRsForLethality, batchCodeTableFactory):
batchCodeTable = batchCodeTableFactory.createGlobalBatchCodeTable()
batchCodeTable = batchCodeTable[~(batchCodeTable['Adverse Reaction Reports'] <= deleteEntriesWithADRsLessThanOrEqual)]
batchCodeTable.index.set_names("Batch", inplace=True)
if minADRsForLethality is not None:
batchCodeTable.loc[