Using column selectors in rules #331
Unanswered
EgeKaraismailogluQC
asked this question in
Q&A
Replies: 2 comments 1 reply
-
|
Hey EgeKaraismailogluQC! I would be surprised if this was an issue in dataframely, but honestly hard to tell without MWE 😅 |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
Bit of a longshot, but the only mechanism I could imagine for selectors to be funky is that they are evaluated on an intermediate dataframe that has more columns than your input dataframe. One example would be here, where we evaluate simple rule expressions after having evaluated group rule expressions. I don't think any of those should return string columns, so your specific example is not immediately easy to explain |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I ran into a weird behavior where an already-validated data frame failed validation. The failing rule uses
polars.selectors.string()to check if all string columns satisfy some condition. The issue goes away if I define the list of columns some other way. I sadly could not reproduce the issue, hence I ask it here as a question instead of a proper issue. Is there some implementation detail indataframelythat could explain this behavior, like adding latent columns at runtime? Should I avoid using selectors in the future?Beta Was this translation helpful? Give feedback.
All reactions