-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
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
Consider removing PD901 #7710
Comments
I'm in favor of this 👍 |
@charliermarsh can you fill this issue in? |
Merged
AFAICT, it seems like rule PD901 has not been deprecated? |
Yeah, it wasn't removed. cc @charliermarsh |
I don't think I closed it! But I'll re-open. |
Can you fill in the context on why we should consider removing the rule? |
Sure. |
charliermarsh
added
breaking
Breaking API change
and removed
needs-decision
Awaiting a decision from a maintainer
labels
Oct 1, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
PD901 disallows
df
as a variable name. This is an opinionated rule inpandas-vet
so is typically only enabled via explicit opt-in. But we don't have that behavior for 900-level rules, so it's always enabled if you enablePD
. The rule is overly strict for most cases, so I think it's a net-negative to have it in Ruff given our behavior.The text was updated successfully, but these errors were encountered: