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 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