adding test SymptomHistogramByBatchcodeTableFactoryTest.test_createSymptomHistogramByBatchcodeTable_two_VAX_LOTs_Index()
This commit is contained in:
@@ -2,4 +2,7 @@ class SymptomHistogramByBatchcodeTableFactory:
|
||||
|
||||
@staticmethod
|
||||
def createSymptomHistogramByBatchcodeTable(symptomByBatchcodeTable):
|
||||
return symptomByBatchcodeTable.groupby(['VAX_LOT1'])['SYMPTOM'].value_counts().to_frame('SYMPTOM_COUNT_BY_VAX_LOT')
|
||||
return (symptomByBatchcodeTable
|
||||
.groupby(symptomByBatchcodeTable.index.names)
|
||||
['SYMPTOM'].value_counts()
|
||||
.to_frame('SYMPTOM_COUNT_BY_VAX_LOT'))
|
||||
|
||||
Reference in New Issue
Block a user