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

refactor(python): improved error message from Expr on incorrect usage in boolean context #6473

Merged

Conversation

alexander-beedie
Copy link
Collaborator

ref #6458.

Not the first time this has come up, so I've slightly enhanced the error that gets raised to point the caller in the right direction when accidentally writing x in [y,z] instead of x.is_in([y,z]).

@github-actions github-actions bot added python Related to Python Polars refactor Code improvements that do not change functionality labels Jan 26, 2023
@ritchie46 ritchie46 merged commit cfd9056 into pola-rs:master Jan 26, 2023
@alexander-beedie alexander-beedie deleted the improve-expr-truthiness-error branch January 30, 2023 17:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
python Related to Python Polars refactor Code improvements that do not change functionality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants