Skip to content

Commit 27cdc55

Browse files
committed
Remove unnecessary variable
1 parent 4ca5c72 commit 27cdc55

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

asv_bench/benchmarks/gil.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ def setup(self, dtype):
250250
np.random.randn(rows, cols), index=date_range("1/1/2000", periods=rows)
251251
),
252252
"object": DataFrame(
253-
"foo", index=range(rows), columns=[f"object%03d" for i in range(5)],
253+
"foo", index=range(rows), columns=["object%03d" for _ in range(5)]
254254
),
255255
}
256256

pandas/core/algorithms.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1159,7 +1159,7 @@ def compute(self, method):
11591159
n = min(n, narr)
11601160

11611161
kth_val = algos.kth_smallest(arr.copy(), n - 1)
1162-
(ns,) = np.nonzero(arr <= kth_val)
1162+
ns, = np.nonzero(arr <= kth_val)
11631163
inds = ns[arr[ns].argsort(kind="mergesort")]
11641164

11651165
if self.keep != "all":

0 commit comments

Comments
 (0)