-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
feat(python)!: Update function signature of nth
to allow positional input of indices, remove columns
parameter
#16510
Conversation
nth
nth
to allow positional input of indices
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #16510 +/- ##
==========================================
- Coverage 81.53% 81.51% -0.02%
==========================================
Files 1410 1410
Lines 185061 185059 -2
Branches 2982 2982
==========================================
- Hits 150885 150848 -37
- Misses 33660 33695 +35
Partials 516 516 ☔ View full report in Codecov by Sentry. |
Completely agree with this one 💯
This one I'm less sure about; the reason I matched it to first/last is because the functionality is equivalent and we have a naming mismatch with the Expr method (which is |
We allow
|
nth
to allow positional input of indicesnth
to allow positional input of indices, remove columns
parameter
Fine by me; to be honest I don't really like the "columns" param in the other two that much either, so feel free to ditch it for |
Agree - it makes sense for Maybe we can make progress on this once we solve #13757 - when selectors are better integrated, we can probably get rid of |
Closes #16511
Changes
nth
to remove the overloaded capability to selectvalues
from given columns at the specified indices.Example
Before:
After:
Use instead: