fn factor_groups(
column: SEXP,
col: &str,
) -> Result<Vec<(GroupKey, Vec<usize>)>, DataFrameError>Expand description
Factor fast path: levels are the keys (level order, empty levels kept).
NA codes — and a literal NA level from addNA() — land in GroupKey::Na.
A level that is not text (marked as bytes) is an error.