My data frame looks like -
name clicked
a 1
b 0
c 0
c 0
d 0
a 1
a 0
b 1
b 0
my final data frame looks like -
name no_clicked_1 no_clicked_0
a 2 0
b 1 2
c 1 1
d 0 1
We can do groupby on name for each 1 and 0. Then merge those data frame. Is there any way we can do this thing in pandas.