Struct polars::prelude::CategoricalChunkedBuilder
source · pub struct CategoricalChunkedBuilder { /* private fields */ }
Implementations§
source§impl CategoricalChunkedBuilder
impl CategoricalChunkedBuilder
pub fn new( name: &str, capacity: usize, ordering: CategoricalOrdering ) -> CategoricalChunkedBuilder
Available on crate feature
dtype-categorical
only.sourcepub fn register_value(&mut self, s: &str) -> (u32, bool)
Available on crate feature dtype-categorical
only.
pub fn register_value(&mut self, s: &str) -> (u32, bool)
dtype-categorical
only.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)
Available on crate feature
dtype-categorical
only.pub fn append_null(&mut self)
Available on crate feature
dtype-categorical
only.pub fn append(&mut self, opt_s: Option<&str>)
Available on crate feature
dtype-categorical
only.pub fn drain_iter_and_finish<'a, I>(self, i: I) -> CategoricalChunked
Available on crate feature
dtype-categorical
only.pub fn finish(self) -> CategoricalChunked
Available on crate feature
dtype-categorical
only.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