Stimulated by another post, my story is: I have this df
col
0 B
1 B
2 A
3 A
4 A
5 B
and i need this output
col col_frequencies
0 B 1
1 B 2
2 A 1
3 A 2
4 A 3
5 B 3
# Value in row 5 is the update of that in row 2. I do not want the counter of frequencies be resetted
Something like a countif in excel.
Thanks in advance from a total beginner, G.