I have a crime dataset where every row is one recorded offence that is to be used in an ARIMA time series model.
Date
0 2015-09-05
1 2015-09-05
2 2015-07-08
3 2017-09-05
4 2018-09-05
4 2018-09-05
I would like to group by data, so that offences that occurred on the same day are aggregated.
Date Count
0 2015-09-05 2
1 2015-07-08 1
2 2017-09-05 1
3 2018-09-05 2
I'm struggling because I'm trying to both group by weeks per year, and because I'm not aggregating the contents of a column, I'm trying to count how many rows are grouped into it.
Thank you.