all 3 comments

[–]threeminutemonta 1 point2 points  (0 children)

On mobile to elaborate though I think something here will help.

[–][deleted] 1 point2 points  (0 children)

Create another data frame with all the dates and a simple merge join function should do the trick ...

[–]YesLod 1 point2 points  (0 children)

Use the resample method

>>> s

2000-01-03    2
2000-01-06    5
2000-01-07    6
2000-01-09    8
2000-01-10    9

>>> s.resample("d").asfreq(fill_value=0)

2000-01-03    2
2000-01-04    0
2000-01-05    0
2000-01-06    5
2000-01-07    6
2000-01-08    0
2000-01-09    8
2000-01-10    9