Python pandas plot time-series with gap,df.plot(x=df.index.astype(str))