Skip to content

Commit 2110ba6

Browse files
authored
STY: Enforce Ruff rule B905 for pandas/core/window (#62530)
1 parent 8acec7a commit 2110ba6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pandas/core/window/rolling.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -351,7 +351,7 @@ def __iter__(self) -> Iterator:
351351
)
352352
self._check_window_bounds(start, end, len(obj))
353353

354-
for s, e in zip(start, end):
354+
for s, e in zip(start, end, strict=True):
355355
result = obj.iloc[slice(s, e)]
356356
yield result
357357

@@ -802,7 +802,7 @@ def _apply_pairwise(
802802
groupby_codes = []
803803
groupby_levels = []
804804
# e.g. [[1, 2], [4, 5]] as [[1, 4], [2, 5]]
805-
for gb_level_pair in map(list, zip(*gb_pairs)):
805+
for gb_level_pair in map(list, zip(*gb_pairs, strict=True)):
806806
labels = np.repeat(np.array(gb_level_pair), old_result_len)
807807
codes, levels = factorize(labels)
808808
groupby_codes.append(codes)

0 commit comments

Comments
 (0)