Relative Content

Tag Archive for pythonexcelpandasdataframe

Pandas dataframe group by column get count of two columns

I am pulling in data from an excel spreadsheet and creating a list of dictionary objects from the rows in that spreadsheet. I converted that to a pandas dataframe. In this data frame I have a column with unique names and then two more columns success and failed in these column I was keeping a count per so either 1 0.