Struct polars::prelude::CategoricalChunkedBuilder
source · pub struct CategoricalChunkedBuilder<'a> { /* private fields */ }
Implementations§
source§impl CategoricalChunkedBuilder<'_>
impl CategoricalChunkedBuilder<'_>
pub fn new(name: &str, capacity: usize) -> CategoricalChunkedBuilder<'_>
Available on crate feature
dtype-categorical
only.source§impl<'a> CategoricalChunkedBuilder<'a>
impl<'a> CategoricalChunkedBuilder<'a>
sourcepub fn exits(&self, s: &str) -> bool
Available on crate feature dtype-categorical
only.
pub fn exits(&self, s: &str) -> bool
dtype-categorical
only.Check if this categorical already exists
pub fn append_value(&mut self, s: &'a str)
Available on crate feature
dtype-categorical
only.pub fn append_null(&mut self)
Available on crate feature
dtype-categorical
only.sourcepub fn drain_iter<I>(&mut self, i: I)where
I: IntoIterator<Item = Option<&'a str>>,
Available on crate feature dtype-categorical
only.
pub fn drain_iter<I>(&mut self, i: I)where I: IntoIterator<Item = Option<&'a str>>,
dtype-categorical
only.Appends all the values in a single lock of the global string cache.
pub fn finish(self) -> CategoricalChunked
Available on crate feature
dtype-categorical
only.Auto Trait Implementations§
impl<'a> RefUnwindSafe for CategoricalChunkedBuilder<'a>
impl<'a> Send for CategoricalChunkedBuilder<'a>
impl<'a> Sync for CategoricalChunkedBuilder<'a>
impl<'a> Unpin for CategoricalChunkedBuilder<'a>
impl<'a> UnwindSafe for CategoricalChunkedBuilder<'a>
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