From b4445061341766e9cb8a0541796105aac587afc5 Mon Sep 17 00:00:00 2001 From: Marcus Read Date: Mon, 5 Jul 2021 00:03:33 +0100 Subject: [PATCH] Fix #40 --- exchange_calendars/calendar_helpers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/exchange_calendars/calendar_helpers.py b/exchange_calendars/calendar_helpers.py index ae6caec9..98991bad 100644 --- a/exchange_calendars/calendar_helpers.py +++ b/exchange_calendars/calendar_helpers.py @@ -12,7 +12,7 @@ NANOSECONDS_PER_MINUTE = int(6e10) -NP_NAT = np.array([pd.NaT], dtype=np.int64)[0] +NP_NAT = pd.NaT.value Session = typing.Union[pd.Timestamp, str, int, float, datetime.datetime]