r-polars icon indicating copy to clipboard operation
r-polars copied to clipboard

Misssing methods for `struct` Series: `fields`, `unnest`, `schema`

Open Yunuuuu opened this issue 10 months ago • 3 comments

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 avatar Mar 31 '24 08:03 Yunuuuu

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 avatar Mar 31 '24 09:03 eitsupi

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.

Yunuuuu avatar Mar 31 '24 09:03 Yunuuuu

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 avatar Mar 31 '24 09:03 eitsupi