my doubt:
I have a df (with Fecha
as index and another column Cantidad
) with records every 3rd day from 2016-05-03 until 2016-05-20, example:
df.index [
2016-05-03,
2016-05-05,
2016-05-07 ...]
With: df = df.asfreq(freq='D')
I have left:
[2016-05-03,
2016-05-04,
2016-05-05,
2016-05-06,
2016-05-07 ...]
And with df = df.fillna(0)
filled with zeros in the column Cantidad
the new records.
But what I need is that I generate it from May 1 to the last day of May. Already having it fill all the other days that are generated equal with 0's.
Thank you.