Skip to content
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

Pandas boolean if statement correction bug #8023

Closed
Stas1beat opened this issue Oct 17, 2023 · 1 comment
Closed

Pandas boolean if statement correction bug #8023

Stas1beat opened this issue Oct 17, 2023 · 1 comment

Comments

@Stas1beat
Copy link

Stas1beat commented Oct 17, 2023

Currently Ruff changes the boolean if statement from the format if <field> == True: (or False). to the format if <field> is True:
This format doesn't work in Pandas, if <field> is True: always returns a False result.
Thank you!

@zanieb
Copy link
Member

zanieb commented Oct 17, 2023

Hi thanks for the report. I believe this is a duplicate of #4560 — let me know if your problem is not captured there!

@zanieb zanieb closed this as not planned Won't fix, can't repro, duplicate, stale Oct 17, 2023
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

No branches or pull requests

2 participants