I have a pandas dataframe with Binary values in the columns as such.
Id Label1 Label2 ......
1 0 1
2 1 1
3 1 1
4 1 1
The output I am looking for is as follows
Label1
3
Label2
4
How do I do this using some form of code that reads each of the columns in the whole panda data-frame and provides the sum for that column. I do know how to do it for one column.