Files
HowBadIsMyBatch/src/TableByBatchcodeFilter.py
2023-01-26 10:55:32 +01:00

10 lines
324 B
Python

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'])