Trait polars_core::chunked_array::ops::ChunkExpandAtIndex
source · pub trait ChunkExpandAtIndex<T: PolarsDataType> {
fn new_from_index(&self, length: usize, index: usize) -> ChunkedArray<T>;
}
Expand description
Create a new ChunkedArray filled with values at that index.
Required Methods§
sourcefn new_from_index(&self, length: usize, index: usize) -> ChunkedArray<T>
fn new_from_index(&self, length: usize, index: usize) -> ChunkedArray<T>
Create a new ChunkedArray filled with values at that index.
Implementors§
impl ChunkExpandAtIndex<BinaryType> for BinaryChunked
Available on crate feature
dtype-binary
only.impl ChunkExpandAtIndex<BooleanType> for BooleanChunked
impl ChunkExpandAtIndex<ListType> for ListChunked
impl ChunkExpandAtIndex<Utf8Type> for Utf8Chunked
impl<T> ChunkExpandAtIndex<T> for ChunkedArray<T>where
ChunkedArray<T>: ChunkFull<T::Native> + TakeRandom<Item = T::Native>,
T: PolarsNumericType + PolarsDataType,
impl<T: PolarsObject> ChunkExpandAtIndex<ObjectType<T>> for ObjectChunked<T>
Available on crate feature
object
only.