From 1a938c079ae0c1ad34ed78661b73d4caf6531ce6 Mon Sep 17 00:00:00 2001 From: MihailSalnikov <2613180+MihailSalnikov@users.noreply.github.com> Date: Tue, 6 Jul 2021 15:23:13 +0300 Subject: [PATCH] Update NP_NAT defenition to fix TypeError bug --- trading_calendars/calendar_helpers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/trading_calendars/calendar_helpers.py b/trading_calendars/calendar_helpers.py index 08fb6783..b670c49d 100644 --- a/trading_calendars/calendar_helpers.py +++ b/trading_calendars/calendar_helpers.py @@ -3,7 +3,7 @@ NANOSECONDS_PER_MINUTE = int(6e10) -NP_NAT = np.array([pd.NaT], dtype=np.int64)[0] +NP_NAT = np.array([pd.NaT])[0] def next_divider_idx(dividers, minute_val):