pub struct DataFrameBuilder { /* private fields */ }
Implementations§
Source§impl DataFrameBuilder
impl DataFrameBuilder
pub fn new(schema: Arc<Schema<DataType>>) -> DataFrameBuilder
pub fn reserve(&mut self, additional: usize)
pub fn freeze(self) -> DataFrame
pub fn freeze_reset(&mut self) -> DataFrame
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
Sourcepub fn extend(&mut self, other: &DataFrame, share: ShareStrategy)
pub fn extend(&mut self, other: &DataFrame, share: ShareStrategy)
Extends this builder with the contents of the given dataframe. May panic if other does not match the schema of this builder.
Sourcepub fn subslice_extend(
&mut self,
other: &DataFrame,
start: usize,
length: usize,
share: ShareStrategy,
)
pub fn subslice_extend( &mut self, other: &DataFrame, start: usize, length: usize, share: ShareStrategy, )
Extends this builder with the contents of the given dataframe subslice. May panic if other does not match the schema of this builder.
Sourcepub unsafe fn gather_extend(
&mut self,
other: &DataFrame,
idxs: &[u32],
share: ShareStrategy,
)
pub unsafe fn gather_extend( &mut self, other: &DataFrame, idxs: &[u32], share: ShareStrategy, )
Extends this builder with the contents of the given dataframe at the given
indices. That is, other[idxs[i]]
is appended to this builder in order,
for each i=0..idxs.len(). May panic if other does not match the schema
of this builder, or if the other dataframe is not rechunked.
§Safety
The indices must be in-bounds.
Sourcepub fn opt_gather_extend(
&mut self,
other: &DataFrame,
idxs: &[u32],
share: ShareStrategy,
)
pub fn opt_gather_extend( &mut self, other: &DataFrame, idxs: &[u32], share: ShareStrategy, )
Extends this builder with the contents of the given dataframe at the given
indices. That is, other[idxs[i]]
is appended to this builder in order,
for each i=0..idxs.len(). Out-of-bounds indices extend with nulls.
May panic if other does not match the schema of this builder, or if the
other dataframe is not rechunked.
Auto Trait Implementations§
impl Freeze for DataFrameBuilder
impl !RefUnwindSafe for DataFrameBuilder
impl Send for DataFrameBuilder
impl !Sync for DataFrameBuilder
impl Unpin for DataFrameBuilder
impl !UnwindSafe for DataFrameBuilder
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more