X = average_salesto_frameXweek = XindexweekXday = Xindexdayofweekseasonal_plotX y=sales period=week freq=day;改写上述代码新添加的两列代表每个数据的所在天和所在分钟。
X = average_sales.to_frame() X["week"] = X.index.week X["day"] = X.index.dayofweek X["hour"] = X.index.hour X["minute"] = X.index.minute seasonal_plot(X, y='sales', period='week', freq='day');
原文地址: https://www.cveoy.top/t/topic/flBr 著作权归作者所有。请勿转载和采集!