Module polars_arrow::compute::cast
source · Available on crate feature
compute_cast
only.Expand description
Defines different casting operators such as cast
or [primitive_to_binary
].
Structs§
- options defining how Cast kernels behave
Functions§
- Conversion of binary
- Cast
BinaryArray
toDictionaryArray
, also known as packing. - Conversion of binary
- Conversion to utf8
- Conversion of binary
- Conversion to utf8
- Casts the
BooleanArray
to aPrimitiveArray
. - Conversion of dates
- Conversion of dates
- Casts
days_ms
s tomonths_days_ns
. This operation is infalible and lossless. - Returns a
PrimitiveArray<i128>
with the casted values. Values areNone
on overflow - Returns a
PrimitiveArray<i128>
with the casted values. Values areNone
on overflow - Returns a
PrimitiveArray<i128>
with the casted values. Values areNone
on overflow - Casts a
DictionaryArray
to a newDictionaryArray
backed by a different physical type of the keys, while keeping the values equal. - Casts a
DictionaryArray
to a newDictionaryArray
by keeping the keys and casting the values tovalues_type
. - Casts f16 into f32
- Conversion of
FixedSizeBinary
toBinary
. - Returns a
PrimitiveArray<i128>
with the casted values. Values areNone
on overflow - Returns a
PrimitiveArray<i128>
with the casted values. Values areNone
on overflow - Casts months represented as
i32
s tomonths_days_ns
. This operation is infalible and lossless. - Returns a
Utf8Array
where every element is the utf8 representation of the timestamp in the rfc3339 format. - Returns a
BooleanArray
where every element is different from zero. Validity is preserved. - Cast
PrimitiveArray
toDictionaryArray
. Also known as packing. - Cast
PrimitiveArray
to aPrimitiveArray
of another physical type via numeric conversion. - Cast
PrimitiveArray
to aPrimitiveArray
of the same physical type. This is O(1). - Conversion of time
- Conversion of times
- Conversion of times
- Conversion of time
- Conversion of times
- Conversion of times
- Conversion of timestamp
- Conversion of timestamp
- Conversion of timestamp
- Returns a
Utf8Array
where every element is the utf8 representation of the timestamp in the rfc3339 format. - Conversion of utf8
- Conversion to binary
- Cast
Utf8Array
toDictionaryArray
, also known as packing. - Conversion of utf8
- Similar to dictionary_to_dictionary_keys, but overflowing cast is wrapped
- Similar to dictionary_to_dictionary_values, but overflowing cast is wrapped