Skip to content

Commit bdb5089

Browse files
committed
LINT fixup
1 parent ff062bd commit bdb5089

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

asv_bench/benchmarks/groupby.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -314,8 +314,9 @@ class GroupByMethods(object):
314314
['all', 'any', 'bfill', 'count', 'cumcount', 'cummax', 'cummin',
315315
'cumprod', 'cumsum', 'describe', 'ffill', 'first', 'head',
316316
'last', 'mad', 'max', 'min', 'median', 'mean', 'nunique',
317-
'pct_change', 'prod', 'quantile', 'rank', 'sem', 'shift', 'size',
318-
'skew', 'std', 'sum', 'tail', 'unique', 'value_counts', 'var'],
317+
'pct_change', 'prod', 'quantile', 'rank', 'sem', 'shift',
318+
'size', 'skew', 'std', 'sum', 'tail', 'unique', 'value_counts',
319+
'var'],
319320
['direct', 'transformation']]
320321

321322
def setup(self, dtype, method, application):

pandas/_libs/groupby.pyx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -448,7 +448,6 @@ def group_quantile(ndarray[float64_t] out,
448448
grp_sz = counts[i]
449449
non_na_sz = non_na_counts[i]
450450

451-
# If we have a group of all NA data we need to bail out
452451
if non_na_sz == 0:
453452
out[i] = NaN
454453
else:
@@ -473,7 +472,7 @@ def group_quantile(ndarray[float64_t] out,
473472
elif interp == INTERPOLATION_MIDPOINT:
474473
out[i] = (val + next_val) / 2.0
475474
elif interp == INTERPOLATION_NEAREST:
476-
if frac > .5 or (frac == .5 and q > .5): # Always safe?
475+
if frac > .5 or (frac == .5 and q > .5): # Always OK?
477476
out[i] = next_val
478477
else:
479478
out[i] = val

0 commit comments

Comments
 (0)