Python Pandas: 添加日期时间信息到数据框并进行季节性分析
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/ocbt 著作权归作者所有。请勿转载和采集!