Struct anndata::container::InnerDataFrameElem
source · pub struct InnerDataFrameElem<B: Backend> {
pub index: DataFrameIndex,
/* private fields */
}
Fields§
§index: DataFrameIndex
Implementations§
source§impl<B: Backend> InnerDataFrameElem<B>
impl<B: Backend> InnerDataFrameElem<B>
source§impl<B: Backend> InnerDataFrameElem<B>
impl<B: Backend> InnerDataFrameElem<B>
pub fn width(&self) -> usize
pub fn height(&self) -> usize
pub fn column(&mut self, name: &str) -> Result<&Series>
pub fn get_column_names(&self) -> &IndexSet<String>
sourcepub fn set_column<S: IntoSeries>(
&mut self,
name: &str,
new_col: S
) -> Result<()>
pub fn set_column<S: IntoSeries>( &mut self, name: &str, new_col: S ) -> Result<()>
Set a column with a Series.
pub fn set_index(&mut self, index: DataFrameIndex) -> Result<()>
pub fn data(&mut self) -> Result<&DataFrame>
pub fn export<O: Backend, G: GroupOp<Backend = O>>( &self, location: &G, name: &str ) -> Result<()>
pub fn export_select<O, G>( &mut self, selection: &[&SelectInfoElem], location: &G, name: &str ) -> Result<()>
pub fn export_axis<O, S, G>( &mut self, axis: usize, selection: S, location: &G, name: &str ) -> Result<()>
pub fn select<S>(&mut self, selection: &[S]) -> Result<DataFrame>where
S: AsRef<SelectInfoElem>,
pub fn select_axis<S>(&mut self, axis: usize, selection: S) -> Result<DataFrame>where
S: AsRef<SelectInfoElem>,
pub fn save(&mut self, data: DataFrame) -> Result<()>
pub fn subset<S>(&mut self, selection: &[S]) -> Result<()>where
S: AsRef<SelectInfoElem>,
pub fn subset_axis<S>(&mut self, axis: usize, selection: S) -> Result<()>where
S: AsRef<SelectInfoElem>,
Trait Implementations§
Auto Trait Implementations§
impl<B> !RefUnwindSafe for InnerDataFrameElem<B>
impl<B> Send for InnerDataFrameElem<B>
impl<B> Sync for InnerDataFrameElem<B>
impl<B> Unpin for InnerDataFrameElem<B>
impl<B> !UnwindSafe for InnerDataFrameElem<B>
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
§impl<T> Pointable for T
impl<T> Pointable for T
§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self
from the equivalent element of its
superset. Read more§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self
is actually part of its subset T
(and can be converted to it).§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset
but without any property checks. Always succeeds.§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self
to the equivalent element of its superset.