We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
polars
ruff version 0.7.3, pandas linting rules PD can trigger when dealing with objects from other libraries, like polars.
ruff
pandas
PD
Minimal example:
import polars as pl pl_df = pl.DataFrame([{"a": 1, "b": 2}, {"a": 3, "b": 4}]) pl_df.pivot(on="a", values="b")
This code raises a warning for rule [PD010](https://docs.astral.sh/ruff/rules/pandas-use-of-dot-pivot-or-unstack):
[PD010](https://docs.astral.sh/ruff/rules/pandas-use-of-dot-pivot-or-unstack)
`.pivot_table` is preferred to `.pivot` or `.unstack`; provides same functionality
The warning is invalid, because the dataframe is not a pandas dataframe (and polars does not even have a pivot_table method!)
pivot_table
The text was updated successfully, but these errors were encountered:
duplicate of #6432
Sorry, something went wrong.
No branches or pull requests
ruff
version 0.7.3,pandas
linting rulesPD
can trigger when dealing with objects from other libraries, like polars.Minimal example:
This code raises a warning for rule
[PD010](https://docs.astral.sh/ruff/rules/pandas-use-of-dot-pivot-or-unstack)
:The warning is invalid, because the dataframe is not a
pandas
dataframe (andpolars
does not even have apivot_table
method!)The text was updated successfully, but these errors were encountered: