The following shows the structure of some data I have (format: a list of lists)
data =
[
[1,2008-12-01],
[1,2008-12-01],
[2,2008-12-01]
... (the lists continue)
]
The dates range from 2008-12-01 to 2008-12-25.
The first field identifies a user by id, the second field (a date field) shows when this user visited a page on my site.
I need to analyse this data so that i get the following results
25 users visted on 1 day
100 users visted on 2 days
300 users visted on 4 days
... upto 25 days
I am using python and don't know where to start !
EDIT
I'm sorry it seems I wasnt clear enough about what I needed as a few people have given answers that are not what I'm looking for.
I need to find out how many users visited on all the days e.g.
10 users visited on 25 days (or every day)
Then I'd like the to list the same for each frequency of days from 1 - 25. So as per my original example above
25 users visited for only one day (out of the 25)
100 users visited on 2 days (out of the 25)
etc
I DONT need to know how many visited on each day
thanks