At the moment I am working on a time series project. I have Daily Data points over a 5 year timespan. In between there a some days with 0 values and some days are missing. For example:
2015-01-10 343
2015-03-10 128
Day 2 of october is missing. In order to build a good Time Series Model I want to resample the Data to Monthly:
df.individuals.resample("M").sum()
but I am getting the following output:
2015-01-31 343.000000
2015-02-28 NaN
2015-03-31 64.500000
Somehow the months are completely wrong.
The expected output would look like this:
2015-31-10 Sum of all days
2015-30-11 Sum of all days
2015-31-12 Sum of all days