Module polars_core::utils
source · Re-exports§
pub use arrow;
pub use rayon;
Modules§
Structs§
- Just a wrapper structure. Useful for certain impl specializations This is for instance use to implement
impl<T> FromIterator<T::Native> for NoNull<ChunkedArray<T>>
asOption<T::Native>
was already implemented:impl<T> FromIterator<Option<T::Native>> for ChunkedArray<T>
Traits§
Functions§
- This takes ownership of the DataFrame so that drop is called earlier.
- This takes ownership of the DataFrame so that drop is called earlier. Does not check if schema is correct
- Ensure the chunks in both ChunkedArrays have the same length.
- Panics
- Determine the supertype of a collection of
AnyValue
. - Determine the supertype and the number of unique data types of a collection of
AnyValue
. - ensure that nulls are propagated to both arrays
- Concat the DataFrames to a single DataFrame.
- Concat the DataFrames to a single DataFrame.
- Convert a collection of
DataType
into a schema. - Given multiple data types, determine the data type that all types can safely be cast to.
- Given two data types, determine the data type that both types can safely be cast to.
- Splits, but doesn’t flatten chunks. E.g. a container can still have multiple chunks.
- Split a
Container
intarget
elements. The target doesn’t have to be respected if not Deviation of the target might be done to create more equal size chunks. - Split a
DataFrame
intarget
elements. The target doesn’t have to be respected if not strict. Deviation of the target might be done to create more equal size chunks. - Given two data types, determine the data type that both types can safely be cast to.
- A utility that allocates an
AmortSeries
. The applied function can then use that series container to save heap allocations and swap arrow arrays.