I have got dataset looking like that:
time raccoons_bought x y
22443 1984-01-01 00:00:01 1 55.776462 37.593956
2143 1984-01-01 00:00:01 4 55.757121 37.378225
9664 1984-01-01 00:00:33 3 55.773702 37.599220
33092 1984-01-01 00:01:39 3 55.757121 37.378225
16697 1984-01-01 00:02:32 2 55.678549 37.583023
i need to calculate how much raccoons was bought per day so what i do: make time as index
df = df.set_index(['time'])
sort dataset by it
df.groupby(df.index.date).count()
but before i will sort i need to delete x and y column that mean coordinates
if i don't delete it dataset will look like that:
raccoons_bought x y
1984-01-01 5497 5497 5497
1984-01-02 5443 5443 5443
1984-01-03 5488 5488 5488
1984-01-04 5453 5453 5453
1984-01-05 5536 5536 5536
1984-01-06 5634 5634 5634
1984-01-07 5468 5468 5468
if i delete it, dataset will look fine:
raccoons_bought
1984-01-01 5497
1984-01-02 5443
1984-01-03 5488
1984-01-04 5453
1984-01-05 5536
1984-01-06 5634
1984-01-07 5468
so my question is how to calculate raccoons_bought per day and save coordinates untouched because i want plot this coords on map and find who bought that raccoons