pub struct DataFrame<FrameFields, FramedStore> { /* private fields */ }Expand description
A data frame. A reference to the underlying data store along with record-based filtering and
sorting details. FrameFields is a FieldLookupCons cons-list which
maps a single label to one or more underlying store labels.
Implementations§
Trait Implementations§
Source§impl<FrameIndex, FrameFields, FramedStore> AsFrameLookup<FrameIndex> for DataFrame<FrameFields, FramedStore>where
FrameFields: AsFrameLookup<FrameIndex>,
impl<FrameIndex, FrameFields, FramedStore> AsFrameLookup<FrameIndex> for DataFrame<FrameFields, FramedStore>where
FrameFields: AsFrameLookup<FrameIndex>,
Source§type Output = <FrameFields as AsFrameLookup<FrameIndex>>::Output
type Output = <FrameFields as AsFrameLookup<FrameIndex>>::Output
The computed
FrameLookupCons.Source§impl<FrameFields, FramedStore> FieldSelect for DataFrame<FrameFields, FramedStore>
impl<FrameFields, FramedStore> FieldSelect for DataFrame<FrameFields, FramedStore>
Source§fn field<Label>(&self) -> <Self as SelectFieldByLabel<Label>>::Outputwhere
Self: SelectFieldByLabel<Label>,
fn field<Label>(&self) -> <Self as SelectFieldByLabel<Label>>::Outputwhere
Self: SelectFieldByLabel<Label>,
Returns a struct containing the data for the field specified by
Label. Read moreSource§impl<StoreFields> From<DataStore<StoreFields>> for DataFrame<<StoreFields as SimpleFrameFields>::Fields, DataStore<StoreFields>>where
StoreFields: AssocStorage + SimpleFrameFields,
impl<StoreFields> From<DataStore<StoreFields>> for DataFrame<<StoreFields as SimpleFrameFields>::Fields, DataStore<StoreFields>>where
StoreFields: AssocStorage + SimpleFrameFields,
Source§impl<Labels, Frames> From<DataView<Labels, Frames>> for DataFrame<<Labels as SimpleFrameFields>::Fields, DataView<Labels, Frames>>where
Labels: SimpleFrameFields,
impl<Labels, Frames> From<DataView<Labels, Frames>> for DataFrame<<Labels as SimpleFrameFields>::Fields, DataView<Labels, Frames>>where
Labels: SimpleFrameFields,
Source§impl<FrameFields, FramedStore> IntoView for DataFrame<FrameFields, FramedStore>where
FrameFields: AssocFrameLookup,
impl<FrameFields, FramedStore> IntoView for DataFrame<FrameFields, FramedStore>where
FrameFields: AssocFrameLookup,
Source§type Labels = <FrameFields as AssocFrameLookup>::Output
type Labels = <FrameFields as AssocFrameLookup>::Output
The
Labels type parameter for the output DataView.Source§type Frames = Cons<Labeled<UTerm, DataFrame<FrameFields, FramedStore>>, Nil>
type Frames = Cons<Labeled<UTerm, DataFrame<FrameFields, FramedStore>>, Nil>
The
Frames type parameter for the output DataView.Source§impl<FrameFields, FramedStore> NRows for DataFrame<FrameFields, FramedStore>where
FramedStore: NRows,
impl<FrameFields, FramedStore> NRows for DataFrame<FrameFields, FramedStore>where
FramedStore: NRows,
Source§impl<FrameFields, FramedStore, Label> SelectFieldByLabel<Label> for DataFrame<FrameFields, FramedStore>where
FrameFields: SelectAndFrame<Label, FramedStore>,
impl<FrameFields, FramedStore, Label> SelectFieldByLabel<Label> for DataFrame<FrameFields, FramedStore>where
FrameFields: SelectAndFrame<Label, FramedStore>,
Source§type DType = <FrameFields as SelectAndFrame<Label, FramedStore>>::DType
type DType = <FrameFields as SelectAndFrame<Label, FramedStore>>::DType
Data type of accessed data.
Source§type Output = Framed<<DataFrame<FrameFields, FramedStore> as SelectFieldByLabel<Label>>::DType, <FrameFields as SelectAndFrame<Label, FramedStore>>::Field>
type Output = Framed<<DataFrame<FrameFields, FramedStore> as SelectFieldByLabel<Label>>::DType, <FrameFields as SelectAndFrame<Label, FramedStore>>::Field>
The return type for the
select_field method.Source§fn select_field(&self) -> Self::Output
fn select_field(&self) -> Self::Output
Returns an object that provides DataIndex access to the
data in the field specified by
Label.impl<FrameFields, FramedStore> SelfValued for DataFrame<FrameFields, FramedStore>
Allow DataFrames to be pulled from LVCons as Values
Source§impl<FrameFields, FramedStore> UpdatePermutation for DataFrame<FrameFields, FramedStore>
impl<FrameFields, FramedStore> UpdatePermutation for DataFrame<FrameFields, FramedStore>
Source§fn update_permutation(self, new_permutation: &[usize]) -> Self
fn update_permutation(self, new_permutation: &[usize]) -> Self
Consumes this object returns a new object with a permutation updated according to the
provided indices.
Auto Trait Implementations§
impl<FrameFields, FramedStore> !Send for DataFrame<FrameFields, FramedStore>
impl<FrameFields, FramedStore> !Sync for DataFrame<FrameFields, FramedStore>
impl<FrameFields, FramedStore> Freeze for DataFrame<FrameFields, FramedStore>
impl<FrameFields, FramedStore> RefUnwindSafe for DataFrame<FrameFields, FramedStore>where
FrameFields: RefUnwindSafe,
FramedStore: RefUnwindSafe,
impl<FrameFields, FramedStore> Unpin for DataFrame<FrameFields, FramedStore>where
FrameFields: Unpin,
impl<FrameFields, FramedStore> UnsafeUnpin for DataFrame<FrameFields, FramedStore>
impl<FrameFields, FramedStore> UnwindSafe for DataFrame<FrameFields, FramedStore>where
FrameFields: UnwindSafe,
FramedStore: RefUnwindSafe,
Blanket Implementations§
Source§impl<Frames> AssocDataIndexCons<Nil> for Frames
impl<Frames> AssocDataIndexCons<Nil> for Frames
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,
impl<T> HasLabels<Nil> for T
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 moreSource§impl<T> IntoLabeled for T
impl<T> IntoLabeled for T
Source§impl<Frames, Store> JoinIntoStore<Nil, Store> for Frames
impl<Frames, Store> JoinIntoStore<Nil, Store> for Frames
Source§fn join_into_store(
&self,
store: Store,
_permutation: &[usize],
) -> Result<Store, AgnesError>
fn join_into_store( &self, store: Store, _permutation: &[usize], ) -> Result<Store, AgnesError>
Augments
store with data from self (as specified with Labels), using the provided
permutation indices.