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

Implement `$struct$unnest()`

Open etiennebacher opened this issue 10 months ago • 6 comments

Part of #998

pl$Series(name = "foo", values = 1)$to_struct()$struct$unnest()
shape: (1, 1)
┌─────┐
│ foo │
│ --- │
│ f64 │
╞═════╡
│ 1.0 │
└─────┘

@eitsupi I did as in #1002 but I'm not sure it's what you had in mind

etiennebacher avatar Apr 02 '24 11:04 etiennebacher

I think this is a good implementation, but the Rd file is not generated. I think we can merge them for the time being and think about the documentation later.

I was imagining that it would be better to define the SeriesStruct_unnest and make it something like unnest=SeriesStruct_unnest

eitsupi avatar Apr 02 '24 12:04 eitsupi

the Rd file is not generated

It is generated, I just had to specify the @name otherwise it's named Series_unnest

etiennebacher avatar Apr 02 '24 12:04 etiennebacher

Ah no my bad, the usage section is wrong

etiennebacher avatar Apr 02 '24 12:04 etiennebacher

I'd rather find a solution here than coming back later for this.

etiennebacher avatar Apr 02 '24 16:04 etiennebacher

Can we merge this?

eitsupi avatar May 22 '24 12:05 eitsupi

No the Usage section in the docs is still wrong

etiennebacher avatar May 22 '24 17:05 etiennebacher