Skip to content

Commit f11738b

Browse files
mroeschkejorisvandenbossche
authored andcommitted
CLN: Unreachable code, Boolean comparison, duplicate functions (#21985)
1 parent f8f0e61 commit f11738b

File tree

3 files changed

+2
-3
lines changed

3 files changed

+2
-3
lines changed

asv_bench/benchmarks/groupby.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ def time_frame_nth(self, dtype):
142142
def time_series_nth_any(self, dtype):
143143
self.df['values'].groupby(self.df['key']).nth(0, dropna='any')
144144

145-
def time_groupby_nth_all(self, dtype):
145+
def time_series_nth_all(self, dtype):
146146
self.df['values'].groupby(self.df['key']).nth(0, dropna='all')
147147

148148
def time_series_nth(self, dtype):

pandas/_libs/internals.pyx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -390,7 +390,7 @@ def get_blkno_indexers(int64_t[:] blknos, bint group=True):
390390
start = 0
391391
cur_blkno = blknos[start]
392392

393-
if group == False:
393+
if group is False:
394394
for i in range(1, n):
395395
if blknos[i] != cur_blkno:
396396
yield cur_blkno, slice(start, i)

pandas/core/indexes/period.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,6 @@ def __contains__(self, key):
315315
return True
316316
except Exception:
317317
return False
318-
return False
319318

320319
contains = __contains__
321320

0 commit comments

Comments
 (0)