Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions pandas/_libs/tslibs/conversion.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -527,7 +527,7 @@ cdef inline void localize_tso(_TSObject obj, tzinfo tz):
cdef:
ndarray[int64_t] trans, deltas
int64_t delta, local_val
Py_ssize_t posn
Py_ssize_t pos

assert obj.tzinfo is None

Expand Down Expand Up @@ -782,7 +782,6 @@ def tz_convert(ndarray[int64_t] vals, object tz1, object tz2):
cdef:
ndarray[int64_t] utc_dates, tt, result, trans, deltas
Py_ssize_t i, j, pos, n = len(vals)
ndarray[Py_ssize_t] posn
int64_t v, offset, delta
npy_datetimestruct dts

Expand Down Expand Up @@ -1124,7 +1123,8 @@ cdef ndarray[int64_t] _normalize_local(ndarray[int64_t] stamps, object tz):
cdef:
Py_ssize_t n = len(stamps)
ndarray[int64_t] result = np.empty(n, dtype=np.int64)
ndarray[int64_t] trans, deltas, pos
ndarray[int64_t] trans, deltas
Py_ssize_t[:] pos
npy_datetimestruct dts

if is_utc(tz):
Expand Down
3 changes: 2 additions & 1 deletion pandas/_libs/tslibs/period.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -934,7 +934,8 @@ cdef ndarray[int64_t] localize_dt64arr_to_period(ndarray[int64_t] stamps,
cdef:
Py_ssize_t n = len(stamps)
ndarray[int64_t] result = np.empty(n, dtype=np.int64)
ndarray[int64_t] trans, deltas, pos
ndarray[int64_t] trans, deltas
Py_ssize_t[:] pos
npy_datetimestruct dts
int64_t local_val

Expand Down
3 changes: 2 additions & 1 deletion pandas/_libs/tslibs/resolution.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,8 @@ cdef _reso_local(ndarray[int64_t] stamps, object tz):
cdef:
Py_ssize_t n = len(stamps)
int reso = RESO_DAY, curr_reso
ndarray[int64_t] trans, deltas, pos
ndarray[int64_t] trans, deltas
Py_ssize_t[:] pos
npy_datetimestruct dts
int64_t local_val

Expand Down