Please help me find a solution for this: I have a Pandas DataFrame containing website visitors and date of their visit. Now I want to know, how many people visit once, twice, etc.
I start with a table:
Visitor | Date
---------------------
A | Jan-1st
B | Jan-1st
C | Jan-2nd
D | Jan-2nd
A | Jan-2nd
I want to end up with a result in the form of:
Frequency | No. of
of visits | visitors
-----------------------
1 | 3
2 | 1