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

feat: rownames option and make_names_unique option of as_polars_df #561

Merged
merged 7 commits into from
Dec 4, 2023

Conversation

eitsupi
Copy link
Collaborator

@eitsupi eitsupi commented Dec 3, 2023

Similar to tibble::as_tibble's rownames argument.
However, it differs in that it implicitly overwrites existing column (as_tibble holds two columns have same name, and tibble::rownames_to_column raise an error).
-> Update: Raise an error for the name is already used as like tibble::rownames_to_column.

R/as_polars.R Outdated Show resolved Hide resolved
R/as_polars.R Show resolved Hide resolved
@eitsupi eitsupi marked this pull request as draft December 3, 2023 13:57
@eitsupi eitsupi changed the title feat: rownames option of as_polars_df feat: rownames option and make_names_unique of as_polars_df Dec 3, 2023
@eitsupi eitsupi changed the title feat: rownames option and make_names_unique of as_polars_df feat: rownames option and make_names_unique option of as_polars_df Dec 3, 2023
@eitsupi eitsupi marked this pull request as ready for review December 3, 2023 14:19
Copy link
Collaborator

@etiennebacher etiennebacher left a comment

Choose a reason for hiding this comment

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

LGTM, thanks @eitsupi!

@etiennebacher etiennebacher merged commit d6c2ca3 into main Dec 4, 2023
31 checks passed
@etiennebacher etiennebacher deleted the rownames branch December 4, 2023 12:07
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