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

implement <Series>$n_chunks() method #999

Merged
merged 7 commits into from
Mar 31, 2024
Merged

Conversation

Yunuuuu
Copy link
Contributor

@Yunuuuu Yunuuuu commented Mar 31, 2024

One issue is the returned type, I have seen Python use integer, but I observed $len() method return a numeric. Is there any reason to return numeric? For R function length, they all have a integer mode

Copy link
Collaborator

@eitsupi eitsupi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for your contribution!
I think they should return an integer, but they may be set to return a double since there is no int64 type in R.

Please complete the roxygen comment and generate the Rd file.
See https://github.com/pola-rs/r-polars/blob/main/DEVELOPMENT.md

R/series__series.R Outdated Show resolved Hide resolved
R/series__series.R Outdated Show resolved Hide resolved
R/series__series.R Outdated Show resolved Hide resolved
src/rust/src/series.rs Outdated Show resolved Hide resolved
@eitsupi eitsupi changed the title implement n_chunks method implement <Series>$n_chunks() method Mar 31, 2024
tests/testthat/_snaps/after-wrappers.md Outdated Show resolved Hide resolved
src/rust/src/series.rs Outdated Show resolved Hide resolved
Copy link
Collaborator

@eitsupi eitsupi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good.
Could you update the NEWS?

@eitsupi eitsupi merged commit 0ac6f5d into pola-rs:main Mar 31, 2024
35 checks passed
@Yunuuuu
Copy link
Contributor Author

Yunuuuu commented Apr 1, 2024

Looks good. Could you update the NEWS?

Sorry, I missed this message :) . Great appreciate for your review

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants