Struct polars::prelude::datatypes::categorical::CategoricalChunkedBuilder
source · pub struct CategoricalChunkedBuilder { /* private fields */ }
Available on crate feature
dtype-categorical
only.Implementations§
source§impl CategoricalChunkedBuilder
impl CategoricalChunkedBuilder
pub fn new( name: &str, capacity: usize, ordering: CategoricalOrdering ) -> CategoricalChunkedBuilder
sourcepub fn register_value(&mut self, s: &str) -> (u32, bool)
pub fn register_value(&mut self, s: &str) -> (u32, bool)
Registers a value to a categorical index without pushing it. Returns the index and if the value was new.
pub fn append_value(&mut self, s: &str)
pub fn append_null(&mut self)
pub fn append(&mut self, opt_s: Option<&str>)
pub fn drain_iter_and_finish<'a, I>(self, i: I) -> CategoricalChunked
pub fn finish(self) -> CategoricalChunked
Auto Trait Implementations§
impl Freeze for CategoricalChunkedBuilder
impl RefUnwindSafe for CategoricalChunkedBuilder
impl Send for CategoricalChunkedBuilder
impl Sync for CategoricalChunkedBuilder
impl Unpin for CategoricalChunkedBuilder
impl UnwindSafe for CategoricalChunkedBuilder
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
Mutably borrows from an owned value. Read more
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> ⓘ
Converts
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> ⓘ
Converts
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