반응형
아래와 같이 trading_calendars 패키지를 임포트 해서 사용시에 parameter 타입에러가 나는 경우가 발생한다.(Pandas 버젼에 따라 문제가 없는 경우도 있으나 최신버젼을 사용하면 발생)
When importing trading_calendars packages, the error message for parameter type pops up. (Depending on Padnas version)
from trading_calendars import get_calendar
Trading_calendars > TradingCalendar > .calendar_helpers
6번째줄 근처를 아래와 같이 수정!
Error fix like below in calendar_helpers.py (Around 6th line)
# NP_NAT = np.array([pd.NaT], dtype=np.int64)[0]
NP_NAT = np.array([pd.NaT.asm8.view('i8')], dtype=np.int64)[0]
Yay!
728x90
반응형