简体   繁体   中英

Getting import error in jupyter notebook?

from pandas.tseries.holiday import USFederalHolidayCalender
from pandas.tseries.offsets import CustomBusinessDay
usb =CustomBusinessDay(calender=USFederalHolidayCalender())
usb

Error- ImportError: cannot import name 'USFederalHolidayCalender' from 'pandas.tseries.holiday' (c:\\users\\shivh\\appdata\\local\\programs\\python\\python38-32\\lib\\site-packages\\pandas\\tseries\\holiday.py)

您打错了,它是 USFederalHolidayCalendar 将日历中的“e”替换为“a”。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM