Skip to content

Commit 04f1821

Browse files
committed
LINT fixes
1 parent 4efbb6b commit 04f1821

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

pandas/_libs/groupby.pyx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,7 @@ def group_last_object(ndarray[object, ndim=2] out,
121121
else:
122122
out[i, j] = resx[i, j]
123123

124+
124125
@cython.boundscheck(False)
125126
@cython.wraparound(False)
126127
def group_rank_object(ndarray[float64_t, ndim=2] out,
@@ -195,10 +196,10 @@ def group_rank_object(ndarray[float64_t, ndim=2] out,
195196
for j in range(i - dups + 1, i + 1):
196197
out[_as[j], 0] = grp_vals_seen
197198

198-
if (i == N - 1 or (
199+
if i == N - 1 or (
199200
(values[_as[i], 0] != values[_as[i+1], 0]) and not
200201
(values[_as[i], 0] is np.nan and values[_as[i+1], 0] is np.nan)
201-
)):
202+
):
202203
dups = sum_ranks = 0
203204
val_start = i
204205
grp_vals_seen += 1

0 commit comments

Comments
 (0)