pub enum DataFrameDictResult {
Mapping {
keys: Vec<String>,
values: BTreeMap<String, Vec<Scalar>>,
},
IndexMappingLazy {
keys: Vec<String>,
labels: Vec<String>,
columns: Vec<Column>,
values: OnceLock<BTreeMap<String, Vec<Scalar>>>,
},
List(BTreeMap<String, Vec<Scalar>>),
Records {
columns: Vec<String>,
rows: Vec<Vec<Scalar>>,
},
Series(BTreeMap<String, Series>),
Split(DataFrameDictSplit),
Tight(DataFrameDictTight),
}Variants§
Mapping
IndexMappingLazy
Fields
List(BTreeMap<String, Vec<Scalar>>)
Records
Series(BTreeMap<String, Series>)
Split(DataFrameDictSplit)
Tight(DataFrameDictTight)
Implementations§
Source§impl DataFrameDictResult
impl DataFrameDictResult
Sourcepub fn as_mapping(&self) -> Option<(&[String], &BTreeMap<String, Vec<Scalar>>)>
pub fn as_mapping(&self) -> Option<(&[String], &BTreeMap<String, Vec<Scalar>>)>
Returns the shared inner keys and the per-outer bare values of a dict/index
mapping result (values[outer][k] is the value at inner key keys[k]).
pub fn as_list(&self) -> Option<&BTreeMap<String, Vec<Scalar>>>
Sourcepub fn as_records(&self) -> Option<(&[String], &[Vec<Scalar>])>
pub fn as_records(&self) -> Option<(&[String], &[Vec<Scalar>])>
Returns the shared column names and the row-major values of a records
result (rows[i][j] is row i’s value for columns[j]).
pub fn as_series(&self) -> Option<&BTreeMap<String, Series>>
pub fn as_tight(&self) -> Option<&DataFrameDictTight>
pub fn as_split(&self) -> Option<&DataFrameDictSplit>
Trait Implementations§
Source§impl Clone for DataFrameDictResult
impl Clone for DataFrameDictResult
Source§impl Debug for DataFrameDictResult
impl Debug for DataFrameDictResult
Auto Trait Implementations§
impl !Freeze for DataFrameDictResult
impl !RefUnwindSafe for DataFrameDictResult
impl !UnwindSafe for DataFrameDictResult
impl Forget for DataFrameDictResult
impl Move for DataFrameDictResult
impl Send for DataFrameDictResult
impl Sync for DataFrameDictResult
impl Unpin for DataFrameDictResult
impl UnsafeUnpin for DataFrameDictResult
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
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