starting TableByBatchcodeFilterTest

This commit is contained in:
frankknoll
2023-01-26 10:55:32 +01:00
parent 5d2059d9d6
commit e427060c05
2 changed files with 46 additions and 0 deletions

View File

@@ -0,0 +1,9 @@
class TableByBatchcodeFilter:
@staticmethod
def filterTableByBatchcode(batchcode, table):
table = table.reset_index()
filteredTable = table[
(table['VAX_LOT1'] == batchcode) |
(table['VAX_LOT2'] == batchcode)]
return filteredTable.set_index(['VAX_LOT1', 'VAX_LOT2'])