-
Notifications
You must be signed in to change notification settings - Fork 122
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
chore: parse strings as columns names at narwhals-level #1856
chore: parse strings as columns names at narwhals-level #1856
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @MarcoGorelli that's quite a refactor!
Not a real concern but maybe something to think about is:
- The asymmetry in some method specs, between Narwhals and Compliant objects
- The expected
simple_select
method (just needs documentation I guess) - Are we adding any extra overhead?
) | ||
except Exception as e: | ||
# Column not found is the only thing that can realistically be raised here. | ||
available_columns = self.columns |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is calling .columns
ok for the lazy case? doesn't polars raise a warning?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
true, but it's crashing at this point anyway, might as well let it warn
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Interesting change here, I am gladly surprised that everything plays out!
thanks for your review!
It's true that there's some asymmetry, but I think that's OK - in my head, the separation is:
From tests I've done locally it doesn't look like it. Theoretically i'd expect it to be slightly lower, if we're just doing a single |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
π thanks for your review, much appreciated! |
closes #1390 (completely by accident π³ π )
What type of PR is this? (check all applicable)
Related issues
Checklist
If you have comments or can explain your changes, please do so below