Skip to content
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

[ENH] nth function #3403

Closed
wants to merge 3 commits into from
Closed

[ENH] nth function #3403

wants to merge 3 commits into from

Conversation

samukweku
Copy link
Contributor

@samukweku samukweku commented Jan 3, 2023

Implement dt.nth(cols, n) function to return the nth row (also per group) for the specified columns. If n goes out of bounds, NA-row is returned.

Closes #3128

@samukweku samukweku self-assigned this Jan 3, 2023
@samukweku samukweku mentioned this pull request Jan 3, 2023
@samukweku
Copy link
Contributor Author

not sure how median is related to nth - triggering an Address boundary error

@oleksiyskononenko
Copy link
Contributor

@samukweku let's separate first() and last() re-factoring from the new nth() feature. Also, could you please restore skipna parameter, so that I help you to make it work (got time for that)?

@samukweku samukweku changed the title [ENH] nth function; Refactor first() and last() reducers to use FExpr [ENH] nth function Jan 3, 2023
@samukweku samukweku added the new feature Feature requests for new functionality label Jan 3, 2023
@samukweku samukweku closed this Jan 3, 2023
@samukweku samukweku deleted the samukweku/nth_first_last branch January 3, 2023 20:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new feature Feature requests for new functionality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

nth function/method for groupby
2 participants