Skip to content

Commit 160b55d

Browse files
author
pilkibun
committed
CLN: fix build warning
1 parent d41edd5 commit 160b55d

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

pandas/_libs/groupby_helper.pxi.in

+8
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,11 @@ def group_last_{{name}}({{c_type}}[:, :] out,
7676
val = values[i, j]
7777

7878
# not nan
79+
{{if name.startswith("int")}}
80+
if 0:
81+
{{else}}
7982
if val == val and val != {{nan_val}}:
83+
{{endif}}
8084
nobs[lab, j] += 1
8185
resx[lab, j] = val
8286

@@ -133,7 +137,11 @@ def group_nth_{{name}}({{c_type}}[:, :] out,
133137
val = values[i, j]
134138

135139
# not nan
140+
{{if name.startswith("int")}}
141+
if 0:
142+
{{else}}
136143
if val == val and val != {{nan_val}}:
144+
{{endif}}
137145
nobs[lab, j] += 1
138146
if nobs[lab, j] == rank:
139147
resx[lab, j] = val

0 commit comments

Comments
 (0)