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

Misssing methods for struct Series: fields, unnest, schema #998

Open
Yunuuuu opened this issue Mar 31, 2024 · 3 comments
Open

Misssing methods for struct Series: fields, unnest, schema #998

Yunuuuu opened this issue Mar 31, 2024 · 3 comments
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@Yunuuuu
Copy link
Contributor

Yunuuuu commented Mar 31, 2024

https://github.com/pola-rs/polars/blob/main/py-polars/polars/series/struct.py

Sorry, I don't know how to transform this rust code into r-polars.
https://github.com/pola-rs/polars/blob/main/py-polars/src/series/mod.rs#L77

It easily to use $to_frame and $unnest to implement $unnest() method in R, but I see python call rust method, I don't know if it's good idea to implement in R side only.

struct_unnest = function() self$to_frame()$unnest()
@Yunuuuu Yunuuuu changed the title Misssing methods for struct: fields and unnest Misssing methods for struct: fields, unnest, schema Mar 31, 2024
@eitsupi eitsupi added the enhancement New feature or request label Mar 31, 2024
@eitsupi
Copy link
Collaborator

eitsupi commented Mar 31, 2024

These seem fairly easy to implement, but updating the website to display the Series subnamespace in the sidebar is quite cumbersome (Related to #686).

@eitsupi eitsupi added the good first issue Good for newcomers label Mar 31, 2024
@Yunuuuu
Copy link
Contributor Author

Yunuuuu commented Mar 31, 2024

It would be great if the website can display the full series method (some methods from expr object) like python reference. when I learn r-polars the first time from the r-polars website, I consider $filter and $slice method (other methods displayed under Expressions) cannot be used for Series.

@eitsupi
Copy link
Collaborator

eitsupi commented Mar 31, 2024

All that is needed here is for someone to write the documentation. However, I don't know if it is worth adding more Rd files to the 600+ that already exist.

@eitsupi eitsupi changed the title Misssing methods for struct: fields, unnest, schema Misssing methods for struct Series: fields, unnest, schema Mar 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants