name' CustomBusinessDay'没有定义

时间:2016-09-20 11:10:05

标签: python datetime pandas

我导入了pandas.tseries.holiday库。

from pandas.tseries.holiday import *

调用函数USFederalHolidayCalendar

cal = USFederalHolidayCalendar()

然后我试图调用CustomBusinessDay,它给了我错误:

cbd = CustomBusinessDay(holidays=cal.holidays())
NameError: name 'CustomBusinessDay' is not defined

我错过了什么吗?

0 个答案:

没有答案