I want to creat list thats counts the iterration of zeros for every same rows in a dataframe.
Id_1 Id_2
0 1401 1
1 1401 1
2 1801 0
3 1801 0
4 1801 0
5 1801 0
6 2001 1
7 2001 1
8 2201 0
9 2201 0
# I would like this output:
L = [(1801, 4), (2201, 2)]