Skip to content

Commit

Permalink
fix: update NP_NAT defenition to fix TypeError bug
Browse files Browse the repository at this point in the history
  • Loading branch information
spannawit committed Nov 29, 2021
1 parent e168969 commit e8ff641
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion trading_calendars/calendar_helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

NANOSECONDS_PER_MINUTE = int(6e10)

NP_NAT = np.array([pd.NaT], dtype=np.int64)[0]
NP_NAT = np.array([np.datetime64('NaT').astype(np.int64)])[0]


def next_divider_idx(dividers, minute_val):
Expand Down

0 comments on commit e8ff641

Please sign in to comment.