pola-rs / r-polars

Bring polars to R
https://pola-rs.github.io/r-polars/
Other
405 stars 35 forks source link

fix!: fix list type column conversion from data frame #1022

Closed eitsupi closed 1 month ago

eitsupi commented 1 month ago

A follow up for #1021

I was trying more complex nested type cases and learned that the columns of list class of data.frame are AsIs class and the list class is hidden.

data.frame(a = I(list(data.frame(b = 1L))))$a |> class()
#> [1] "AsIs"

Created on 2024-04-11 with reprex v2.1.0

So it was necessary to add a process here to convert this column back to the list class to convert it to the Series as intended.