Skip to content

Commit b9d6433

Browse files
pilkibunjreback
pilkibun
authored andcommitted
Fix compilation warnings (#27371)
1 parent 208bbe8 commit b9d6433

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

pandas/_libs/internals.pyx

+1-1
Original file line numberDiff line numberDiff line change
@@ -382,7 +382,7 @@ def get_blkno_indexers(int64_t[:] blknos, bint group=True):
382382

383383
object blkno
384384
list group_order
385-
dict group_slices
385+
dict group_dict
386386
int64_t[:] res_view
387387

388388
n = blknos.shape[0]

pandas/_libs/tslibs/c_timestamp.pyx

+1-1
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ cdef class _Timestamp(datetime):
213213

214214
def __add__(self, other):
215215
cdef:
216-
int64_t other_int, nanos
216+
int64_t other_int, nanos = 0
217217

218218
if is_timedelta64_object(other):
219219
other_int = other.astype('timedelta64[ns]').view('i8')

pandas/_libs/window.pyx

+1-1
Original file line numberDiff line numberDiff line change
@@ -1682,7 +1682,7 @@ def roll_window(ndarray[float64_t, ndim=1, cast=True] values,
16821682
Assume len(weights) << len(values)
16831683
"""
16841684
cdef:
1685-
ndarray[float64_t] output, tot_wgt, counts
1685+
float64_t[:] output, tot_wgt, counts
16861686
Py_ssize_t in_i, win_i, win_n, in_n
16871687
float64_t val_in, val_win, c, w
16881688

0 commit comments

Comments
 (0)