I am trying to build time series data where there is no data at certain periods. Data is loaded into a dataframe, and I draw it using df.plot(). The problem is that the missing periods are connected during the construction of the chart, giving the impression that this value exists during this period, while it is absent.
Here is an example of a problem

There is no data between Sep 01 and Sep 08, and also between Sep 09 and Sep 25, but the data is displayed so that it seems that there are values in this period.
I would like to have zero values visualized during this period, or no values at all. How to do it?
To be clear, I do not have NaN values for the periods [Sep 01, Sep 08], [Sep 09, Sep 29], but there is no data at all (not even in the time index).
source
share