pub fn binary_to_dictionary<O, K>(
from: &BinaryArray<O>,
) -> Result<DictionaryArray<K>, PolarsError>where
O: Offset,
K: DictionaryKey,
Expand description
Cast BinaryArray
to DictionaryArray
, also known as packing.
ยงErrors
This function errors if the maximum key is smaller than the number of distinct elements in the array.