pub fn _get_rows_encoded_compat_array(
    by: &Series
) -> Result<Box<dyn Array>, PolarsError>