-
Notifications
You must be signed in to change notification settings - Fork 156
chore: Spec CompliantDataFrame
#2223
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
Conversation
- Variance of `CompliantSeriesT_co` changed due to how it is used - Made a lot of the types more generic - They can be refined by the implementations - Some will handle coverting to narrower types, where that backend demands it - **Main missing part** is `CompliantExpr` - Need to spec `CompliantSeries` first - Otherwise, introduces lots of errors for `Polars*`
- Technically works, but I'd like to avoid the `Any` - Maybe adding a generic callable alias, that gets subscribed w/ `Self`?
- Have a feeling this was used more in the past - E.g. when `select` accepted `*args, **kwds`
`nw.DataFrame` already calls with keyword
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 @dangotbanned !
just got a comment on the aggregate
comment
- Resolves #2223 (comment) - Will help with `EagerDataFrame` as well
- `filter` accepts a `list` in some cases - `group_by` will need `CompliantGroupBy` - See also #2184 (comment)
- Now we don't accept any arbitrary expression - It must derive the current type - Simplifies the typing - Really wasn't happy with what I had previously - Glad that is gone now - Added a doc, since the single output part is really the most important
Seems to not interact well with `.collect()`? #2223 (comment)
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! What's your question? |
Sorry it got lost π just left it as a comment |
What type of PR is this? (check all applicable)
Related issues
CompliantNamespace
protocolΒ #2202CompliantExpr
Β #2119CompliantSelector
Β #2064Checklist
If you have comments or can explain your changes, please do so below
PolarsDataFrame.__getattr__
annotationsCompliantDataFrame.aggregate
(4dc0514)FBT001
) issues (70cc069)CompliantExpr
inCompliantDataFrame