Struct polars::chunked_array::object::datatypes::CategoricalChunked
source · [−]pub struct CategoricalChunked { /* private fields */ }
This is supported on crate feature
object
only.Implementations
sourceimpl CategoricalChunked
impl CategoricalChunked
pub fn sort_with(&self, options: SortOptions) -> CategoricalChunked
sourcepub fn sort(&self, reverse: bool) -> CategoricalChunked
pub fn sort(&self, reverse: bool) -> CategoricalChunked
Returned a sorted ChunkedArray
.
sourcepub fn argsort(&self, options: SortOptions) -> ChunkedArray<UInt32Type>
pub fn argsort(&self, options: SortOptions) -> ChunkedArray<UInt32Type>
Retrieve the indexes needed to sort this array.
sourceimpl CategoricalChunked
impl CategoricalChunked
pub fn append(&mut self, other: &CategoricalChunked) -> Result<(), PolarsError>
sourceimpl CategoricalChunked
impl CategoricalChunked
pub fn full_null(name: &str, length: usize) -> CategoricalChunked
sourceimpl CategoricalChunked
impl CategoricalChunked
pub fn unique(&self) -> Result<CategoricalChunked, PolarsError>
pub fn n_unique(&self) -> Result<usize, PolarsError>
pub fn value_counts(&self) -> Result<DataFrame, PolarsError>
sourceimpl CategoricalChunked
impl CategoricalChunked
pub fn is_empty(&self) -> bool
pub fn len(&self) -> usize
pub fn set_lexical_sorted(&mut self, toggle: bool)
sourcepub fn get_rev_map(&self) -> &Arc<RevMapping>
pub fn get_rev_map(&self) -> &Arc<RevMapping>
Get a reference to the mapping of categorical types to the string values.
Trait Implementations
sourceimpl Clone for CategoricalChunked
impl Clone for CategoricalChunked
sourcefn clone(&self) -> CategoricalChunked
fn clone(&self) -> CategoricalChunked
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl<'_> From<&'_ CategoricalChunked> for DictionaryArray<u32>
impl<'_> From<&'_ CategoricalChunked> for DictionaryArray<u32>
sourcefn from(ca: &CategoricalChunked) -> DictionaryArray<u32>
fn from(ca: &CategoricalChunked) -> DictionaryArray<u32>
Performs the conversion.
sourceimpl<'_> From<&'_ CategoricalChunked> for DictionaryArray<i64>
impl<'_> From<&'_ CategoricalChunked> for DictionaryArray<i64>
sourcefn from(ca: &CategoricalChunked) -> DictionaryArray<i64>
fn from(ca: &CategoricalChunked) -> DictionaryArray<i64>
Performs the conversion.
sourceimpl IntoSeries for CategoricalChunked
impl IntoSeries for CategoricalChunked
sourceimpl LogicalType for CategoricalChunked
impl LogicalType for CategoricalChunked
Auto Trait Implementations
impl !RefUnwindSafe for CategoricalChunked
impl Send for CategoricalChunked
impl Sync for CategoricalChunked
impl Unpin for CategoricalChunked
impl !UnwindSafe for CategoricalChunked
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Pointable for T
impl<T> Pointable for T
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more