Skip to content

Activate Pandas linting rules (PD)#10571

Merged
lukasmasuch merged 2 commits intodevelopfrom
add-pandas-linting-rule
Mar 3, 2025
Merged

Activate Pandas linting rules (PD)#10571
lukasmasuch merged 2 commits intodevelopfrom
add-pandas-linting-rule

Conversation

@lukasmasuch
Copy link
Copy Markdown
Collaborator

@lukasmasuch lukasmasuch commented Mar 1, 2025

Describe your changes

Activates the pandas linting category in ruff (PD). This provides a couple of opinionated linting rules for usage of the Pandas API. We ignore this rule in our tests since our tests do not need the same scrutiny.


Contribution License Agreement

By submitting this pull request you agree that all contributions to this project are made under the Apache 2.0 license.

@sfc-gh-lmasuch sfc-gh-lmasuch added security-assessment-completed change:other PR contains other type of change impact:internal PR changes only affect internal code labels Mar 1, 2025
@sfc-gh-lmasuch sfc-gh-lmasuch changed the title [WIP] Add pandas linting rule [WIP] activate pandas linting rule Mar 1, 2025
@sfc-gh-lmasuch sfc-gh-lmasuch changed the title [WIP] activate pandas linting rule [WIP] Activate pandas linting rule Mar 1, 2025
@lukasmasuch lukasmasuch changed the title [WIP] Activate pandas linting rule [WIP] Activate pandas linting rule (PD) Mar 3, 2025
@lukasmasuch lukasmasuch changed the title [WIP] Activate pandas linting rule (PD) Activate Pandas linting rule (PD) Mar 3, 2025
@lukasmasuch lukasmasuch changed the title Activate Pandas linting rule (PD) Activate Pandas linting rules (PD) Mar 3, 2025
@lukasmasuch lukasmasuch marked this pull request as ready for review March 3, 2025 14:55
@lukasmasuch lukasmasuch merged commit 1bc32eb into develop Mar 3, 2025
41 of 44 checks passed
@lukasmasuch lukasmasuch deleted the add-pandas-linting-rule branch March 3, 2025 21:36
lukasmasuch added a commit that referenced this pull request Sep 10, 2025
## Describe your changes

The change to use `iloc` instead of `iat` applied in
#10571 caused performance
issues. This PR fixes the performance issues by using a more efficient
way to update the values in the dataframe.

## GitHub Issue Link (if applicable)

- Related #10952

## Testing Plan

- Existing tests should cover this well.
- Added a benchmark test to keep track of the styler performance.

---

**Contribution License Agreement**

By submitting this pull request you agree that all contributions to this
project are made under the Apache 2.0 license.

---------

Co-authored-by: Copilot <[email protected]>
Co-authored-by: Lukas Masuch <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

change:other PR contains other type of change impact:internal PR changes only affect internal code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants