Skip to content

Commit 8089e67

Browse files
committed
Remove some extraneous variables
1 parent 06f2658 commit 8089e67

File tree

1 file changed

+4
-22
lines changed

1 file changed

+4
-22
lines changed

pandas/_libs/window.pyx

Lines changed: 4 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1223,10 +1223,11 @@ cdef _roll_min_max(ndarray[numeric] input, int64_t win, int64_t minp,
12231223
cdef:
12241224
numeric ai
12251225
bint is_variable, should_replace
1226-
int64_t s, e, N, i, j, removed
1226+
int64_t N, i, removed
12271227
Py_ssize_t nobs = 0
12281228
deque Q[int64_t]
1229-
ndarray[int64_t] starti, endi
1229+
ndarray[int64_t] _
1230+
# ndarray[int64_t] starti, endi
12301231
ndarray[numeric, ndim=1] output
12311232
cdef:
12321233
int64_t* death
@@ -1238,7 +1239,7 @@ cdef _roll_min_max(ndarray[numeric] input, int64_t win, int64_t minp,
12381239
cdef:
12391240
cdef numeric r
12401241

1241-
starti, endi, N, win, minp, is_variable = get_window_indexer(
1242+
_, _ , N, win, minp, is_variable = get_window_indexer(
12421243
input, win,
12431244
minp, index, closed)
12441245

@@ -1279,25 +1280,6 @@ cdef _roll_min_max(ndarray[numeric] input, int64_t win, int64_t minp,
12791280
Q.push_back(i)
12801281

12811282
output[N-1] = calc_mm(minp, nobs, input[Q[0]])
1282-
# for i in range(N):
1283-
# s = starti[i]
1284-
# e = endi[i]
1285-
#
1286-
# r = input[s]
1287-
# nobs = 0
1288-
# for j in range(s, e):
1289-
#
1290-
# # adds, death at the i offset
1291-
# ai = init_mm(input[j], &nobs, is_max)
1292-
#
1293-
# if is_max:
1294-
# if ai > r:
1295-
# r = ai
1296-
# else:
1297-
# if ai < r:
1298-
# r = ai
1299-
#
1300-
# output[i] = calc_mm(minp, nobs, r)
13011283

13021284
else:
13031285
# setup the rings of death!

0 commit comments

Comments
 (0)