Relative Content

Tag Archive for dataframecount

Count occurencies with multiple criteria from dataframe

I have a dataframe from a large excel sheet with patient data outcomes that includes 20+ columns and thousands of rows. I would like to take out statistics based on multiple criteria. I would like to count all the samples that fulfill many different criteria, not only one or two (10+ criteria) including not matching some criteria.
The data looks something like this, but with many more rows and columns.

Count occurencies with multiple criteria from dataframe

I have a dataframe from a large excel sheet with patient data outcomes that includes 20+ columns and thousands of rows. I would like to take out statistics based on multiple criteria. I would like to count all the samples that fulfill many different criteria, not only one or two (10+ criteria) including not matching some criteria.
The data looks something like this, but with many more rows and columns.