@@ -38,14 +38,7 @@ from cpython.datetime cimport (PyDelta_Check, PyTZInfo_Check,
3838# import datetime C API
3939PyDateTime_IMPORT
4040# this is our datetime.pxd
41- from datetime cimport (
42- pandas_datetime_to_datetimestruct,
43- days_per_month_table,
44- PANDAS_DATETIMEUNIT,
45- _string_to_dts,
46- is_leapyear,
47- dayofweek,
48- PANDAS_FR_ns)
41+ from datetime cimport pandas_datetime_to_datetimestruct, _string_to_dts
4942
5043# stdlib datetime imports
5144from datetime import time as datetime_time
@@ -55,11 +48,14 @@ from tslibs.np_datetime cimport (check_dts_bounds,
5548 reverse_ops,
5649 cmp_scalar,
5750 pandas_datetimestruct,
51+ PANDAS_DATETIMEUNIT, PANDAS_FR_ns,
5852 dt64_to_dtstruct, dtstruct_to_dt64,
5953 pydatetime_to_dt64, pydate_to_dt64,
6054 npy_datetime,
6155 get_datetime64_unit, get_datetime64_value,
62- get_timedelta64_value)
56+ get_timedelta64_value,
57+ days_per_month_table,
58+ dayofweek, is_leapyear)
6359from tslibs.np_datetime import OutOfBoundsDatetime
6460
6561from .tslibs.parsing import parse_datetime_string
@@ -75,9 +71,6 @@ UTC = pytz.utc
7571import_array()
7672
7773
78- cdef int64_t NPY_NAT = util.get_nat()
79- iNaT = NPY_NAT
80-
8174from tslibs.timedeltas cimport cast_from_unit, delta_to_nanoseconds
8275from tslibs.timedeltas import Timedelta
8376from tslibs.timezones cimport (
@@ -95,8 +88,8 @@ from tslibs.conversion cimport (tz_convert_single, _TSObject,
9588from tslibs.conversion import (tz_localize_to_utc,
9689 tz_convert_single, date_normalize)
9790
98- from tslibs.nattype import NaT, nat_strings
99- from tslibs.nattype cimport _checknull_with_nat
91+ from tslibs.nattype import NaT, nat_strings, iNaT
92+ from tslibs.nattype cimport _checknull_with_nat, NPY_NAT
10093
10194
10295cdef inline object create_timestamp_from_ts(
0 commit comments