Function polars_arrow::compute::cast::dictionary_to_dictionary_keys
source · pub fn dictionary_to_dictionary_keys<K1, K2>(
from: &DictionaryArray<K1>,
) -> PolarsResult<DictionaryArray<K2>>
Available on crate feature
compute_cast
only.Expand description
Casts a DictionaryArray
to a new DictionaryArray
backed by a
different physical type of the keys, while keeping the values equal.
§Errors
Errors if any of the old keys’ values is larger than the maximum value supported by the new physical type.