pub struct CategoricalMetadata {
pub categories: Vec<Scalar>,
pub ordered: bool,
}Expand description
Metadata for categorical (factor) data.
Stores the unique category values and an ordered flag. The underlying
Series column contains integer codes (indices into categories).
Series-level dtype reporting still surfaces DType::Categorical.
Fields§
§categories: Vec<Scalar>The unique category values, in order.
ordered: boolWhether the categories have a meaningful total ordering.
Trait Implementations§
Source§impl Clone for CategoricalMetadata
impl Clone for CategoricalMetadata
Source§fn clone(&self) -> CategoricalMetadata
fn clone(&self) -> CategoricalMetadata
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CategoricalMetadata
impl Debug for CategoricalMetadata
Source§impl<'de> Deserialize<'de> for CategoricalMetadata
impl<'de> Deserialize<'de> for CategoricalMetadata
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for CategoricalMetadata
impl PartialEq for CategoricalMetadata
Source§fn eq(&self, other: &CategoricalMetadata) -> bool
fn eq(&self, other: &CategoricalMetadata) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for CategoricalMetadata
impl Serialize for CategoricalMetadata
impl StructuralPartialEq for CategoricalMetadata
Auto Trait Implementations§
impl Freeze for CategoricalMetadata
impl RefUnwindSafe for CategoricalMetadata
impl Send for CategoricalMetadata
impl Sync for CategoricalMetadata
impl Unpin for CategoricalMetadata
impl UnsafeUnpin for CategoricalMetadata
impl UnwindSafe for CategoricalMetadata
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