仅在工作日生成的数据 .
df['Day_of_Month'] = df.index.day
Date........................................ Day_of_Month
2014-11-26 1049.25 1054.75 26
2014-11-28 1041.00 1051.50 28
2014-12-01 1010.75 1022.50 1
可以按日历日期“Day_of_Month”分组,每月约30个
目标是按月的营业日分组,大约22 /月
有没有df.index . buiness_day_of_Month 类型的功能?
尝试导入BDay,特殊日历等,但没有成功 . 谢谢您的帮助 .
1 回答
可能这有帮助
数据