Files
HowBadIsMyBatch/src/SymptomHistogramByBatchcodeTableFactory.py
frankknoll 9bc06e368a formating
2023-01-24 14:42:25 +01:00

11 lines
374 B
Python

class SymptomHistogramByBatchcodeTableFactory:
@staticmethod
def createSymptomHistogramByBatchcodeTable(symptomByBatchcodeTable):
return (
symptomByBatchcodeTable
.groupby(symptomByBatchcodeTable.index.names)
['SYMPTOM'].value_counts()
.to_frame(name = 'SYMPTOM_COUNT_BY_VAX_LOT')
)