diff --git a/chapter-6/forecast1.py b/chapter-6/forecast1.py index 6320e63..99c6321 100644 --- a/chapter-6/forecast1.py +++ b/chapter-6/forecast1.py @@ -22,7 +22,7 @@ def plot(self): from sktime.utils.plotting import plot_series from io import BytesIO buf = BytesIO() - fig, _ = plot_series(self.pd_past5days, labels=['past5days']) + fig, _ = plot_series(self.pd_past5days.sort_index(axis=0), labels=['past5days']) fig.savefig(buf) self.plot = buf.getvalue() self.next(self.end)