Module polars_core::chunked_array::ops
source · Expand description
Traits for miscellaneous operations on ChunkedArray
Re-exports§
pub use sort::options::*;
Modules§
- zip
zip_with
Enums§
Traits§
- Aggregation operations.
- Fastest way to do elementwise operations on a
ChunkedArray<T>
when the operation is cheaper than branching due to null checking. - Apply kernels on the arrow array chunks in a ChunkedArray.
- Cast
ChunkedArray<T>
toChunkedArray<N>
- Create a new ChunkedArray filled with values at that index.
- Explode/flatten a List or String Series
- Replace None values with a value
- Filter values by a boolean mask.
- Fill a ChunkedArray with one value.
- Quantile and median aggregation.
- Reverse a
ChunkedArray<T>
- ChunkRollApply
rolling_window
This differs from ChunkWindowCustom and ChunkWindow by not using a fold aggregator, but reusing aSeries
wrapper and callingSeries
aggregators. This likely is a bit slower than ChunkWindow - Create a
ChunkedArray
with new values by index or by boolean mask. Note that these operations clone data. This is however the only way we can modify at mask or index level as the underlying Arrow arrays are immutable. - Shift the values of a
ChunkedArray
by a number of periods. - Sort operations on
ChunkedArray
. - Get unique values in a
ChunkedArray
- Variance and standard deviation aggregation.
- Combine two
ChunkedArray
based on some predicate. - IsFirstDistinct
is_first_distinct
Mask the first unique values astrue
- IsLastDistinct
is_last_distinct
Mask the last unique values astrue