Skip to content

Conversation

RAAPPO
Copy link
Contributor

@RAAPPO RAAPPO commented Oct 2, 2025

Part of #62434

This PR enforces Ruff rule B905 (zip-without-explicit-strict) by adding explicit strict=True to all zip() calls in pandas/core/frame.py.

  • Updated zip(self.index, self.values) to zip(self.index, self.values, strict=True)
  • Updated zip(*arrays) to zip(*arrays, strict=True)
  • Updated zip(key, value.columns) to zip(key, value.columns, strict=True)
  • Updated zip(cols, cols_droplevel) to zip(cols, cols_droplevel, strict=True)
  • Updated zip(reversed(self.index.levels), reversed(self.index.codes)) to zip(reversed(self.index.levels), reversed(self.index.codes), strict=True)
  • Updated zip(*map(f, vals)) to zip(*map(f, vals), strict=True)
  • Updated zip(keys, by) to zip(keys, by, strict=True)
  • Updated zip(self._iter_column_arrays(), right) to zip(self._iter_column_arrays(), right, strict=True)
  • Updated zip(left.values.T, right.values.T) to zip(left.values.T, right.values.T, strict=True)

Checklist:

I am a contributor working through multiple directories. Please let me know if any changes are needed!

@RAAPPO RAAPPO closed this Oct 2, 2025
@RAAPPO RAAPPO deleted the enforce-ruff-b905-core-frame branch October 2, 2025 20:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant