pub enum DataFrameColumnData<'a> {
Int(&'a [i64]),
Float(&'a [f64]),
Str(&'a [String]),
Bool(&'a [bool]),
Categorical {
levels: &'a [String],
codes: &'a [u32],
},
DateTime(&'a [i64]),
}Expand description
Typed column data for encode_dataframe.
Each variant borrows the underlying column data for zero-copy encoding.
Variants§
Int(&'a [i64])
Column of 64-bit signed integers.
Float(&'a [f64])
Column of 64-bit floats (NaN values are canonicalized during encoding).
Str(&'a [String])
Column of UTF-8 strings.
Bool(&'a [bool])
Column of boolean values.
Categorical
Categorical column with unique level labels and per-row integer codes.
Fields
DateTime(&'a [i64])
Column of datetime values stored as epoch milliseconds (i64).
Auto Trait Implementations§
impl<'a> Freeze for DataFrameColumnData<'a>
impl<'a> RefUnwindSafe for DataFrameColumnData<'a>
impl<'a> Send for DataFrameColumnData<'a>
impl<'a> Sync for DataFrameColumnData<'a>
impl<'a> Unpin for DataFrameColumnData<'a>
impl<'a> UnsafeUnpin for DataFrameColumnData<'a>
impl<'a> UnwindSafe for DataFrameColumnData<'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
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