You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
etiennebacher
changed the title
Polars Categolical/Enum -> R factor conversion via Rust
Make Categorical/Enum to R factor conversion via Rust
Jun 22, 2024
eitsupi
changed the title
Make Categorical/Enum to R factor conversion via Rust
Make Polars Categorical/Enum to R factor conversion via Rust
Jul 11, 2024
Thanks. Probably no one is working on this at this time.
BTW, we are shifting our focus to the next branch (under development in https://github.com/eitsupi/neo-r-polars) on adding new features, so it might be better to have them work on that.
(Currently the main branch is stuck on updating Rust Polars #1271)
Currently the conversion to the factor type is performed by calling the
factor()
function in R.r-polars/src/rust/src/conversion_s_to_r.rs
Lines 113 to 118 in 6eac27a
but I think it would be possible to perform the conversion on Rust by porting the process from the arrow package.
https://github.com/apache/arrow/blob/26724ab787d12854f109d01571638b099f2bc8a5/r/src/array_to_vector.cpp#L563-L717
The text was updated successfully, but these errors were encountered: