Module polars_core::utils
source · Re-exports
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>>
as Option<T::Native>
was already implemented:
impl<T> FromIterator<Option<T::Native>> for ChunkedArray<T>
Traits
Functions
Transform to physical type and coerce floating point and similar sized integer to a bit representation
to reduce compiler bloat
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
argsort_no_nulls
private
ensure that nulls are propagated to both arrays
Concat the DataFrames to a single DataFrame.
Concat the DataFrames to a single DataFrame.
get_supertype
private
Given two datatypes, determine the supertype that both types can safely be cast to
get_time_units
private
parallel_op_series
private
Simple wrapper to parallelize functions that can be divided over threads aggregated and
finally aggregated in the main thread. This can be done for sum, min, max, etc.
split_ca
private
try_get_supertype
private
Given two datatypes, determine the supertype that both types can safely be cast to
A utility that allocates an
UnstableSeries
. The applied function can then use that
series container to save heap allocations and swap arrow arrays.