starting SymptomHistogramByBatchcodeTableFactoryTest

This commit is contained in:
frankknoll
2023-01-23 08:34:26 +01:00
parent b6eb929a7b
commit 4cadd18d45
2 changed files with 37 additions and 0 deletions

View File

@@ -0,0 +1,5 @@
class SymptomHistogramByBatchcodeTableFactory:
@staticmethod
def createSymptomHistogramByBatchcodeTable(symptomByBatchcodeTable):
return symptomByBatchcodeTable.groupby(['VAX_LOT1'])['SYMPTOM'].value_counts().to_frame('SYMPTOM_COUNT_BY_VAX_LOT')