-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Remove several top-level functions #7016
Comments
It only broadcast if it is selected with multiple expression, not if it is the only selection. It also has no
I like the readability of
Seems fine by me to only expose this on the |
About I agree that I don't see the point of having it as a separate function, over just a DataFrame method (which it already is).
Agreed that |
I believe this issue has been resolved. Please open a new issue for any unresolved leftover issues. |
Problem description
Most of our api is behind
DataFrame
,Series
, andExpr
. For the functions that are not, that is mostly ok, but I think the below list is better placed elsewhere, so I think they can be removed? Unless I am missing something here. See also https://pola-rs.github.io/polars/py-polars/html/reference/functions.html for all top-level functions (except utils).pl.arg_where
: operates onSeries
andExpressions
, returns index where condition is True. Usage of this should probably be discouraged, and we could, if we want to continue supporting this, move toSeries.arg_where
andExpr.arg_where
? I.e. I dont see why this needs to be special vs all other methods.pl.cut
: should be on Series & Exprpl.get_dummies
: what exactly is the difference withDataFrame.to_dummies()
? The docstrings are unable to make that clear. The docstring here: https://pola-rs.github.io/polars/py-polars/html/reference/api/polars.get_dummies.html even suggests it is broken, why is"ham"
not different from the other two columns, although it is not in the parameter list?pl.ones
&pl.zeros
: we have broadcasting now, so how useful is this? I.e.pl.lit(1, pl.Int64)
.The text was updated successfully, but these errors were encountered: