Trait brassfibre::prelude::RowIndex
[−]
[src]
pub trait RowIndex<'s>: Sized { type Key; type Row; fn len(&'s self) -> usize; fn reindex<'l>(&'s self, labels: &'l [Self::Key]) -> Self; fn reindex_by_index<'l>(&'s self, locations: &'l [usize]) -> Self; fn loc<'l>(&'s self, label: &'l Self::Key) -> Self::Row; fn iloc<'l>(&'s self, location: &'l usize) -> Self::Row; fn blocs<'l>(&'s self, flags: &'l [bool]) -> Self; fn head(&'s self, n: usize) -> Self { ... } fn tail(&'s self, n: usize) -> Self { ... } fn locs<'l>(&'s self, labels: &'l [Self::Key]) -> Self { ... } fn ilocs<'l>(&'s self, locations: &'l [usize]) -> Self { ... } }
Indexing methods for Index(Row)
Associated Types
Required Methods
fn len(&'s self) -> usize
fn reindex<'l>(&'s self, labels: &'l [Self::Key]) -> Self
fn reindex_by_index<'l>(&'s self, locations: &'l [usize]) -> Self
fn loc<'l>(&'s self, label: &'l Self::Key) -> Self::Row
Get a single value corresponding to given label (slice by LOCation)
fn iloc<'l>(&'s self, location: &'l usize) -> Self::Row
Get a single value corresponding to given index (slice by Index LOCation)
fn blocs<'l>(&'s self, flags: &'l [bool]) -> Self
Slice using given Vec
Provided Methods
fn head(&'s self, n: usize) -> Self
fn tail(&'s self, n: usize) -> Self
fn locs<'l>(&'s self, labels: &'l [Self::Key]) -> Self
Slice using given labels (slice by LOCationS)
fn ilocs<'l>(&'s self, locations: &'l [usize]) -> Self
Slice using given indices (slice by Index LOCationS)
Implementors
impl<'v, 'i, 'c, V, I, C> RowIndex<'c> for Block<'v, 'i, 'c, V, I, C> where
V: Clone,
I: Clone + Eq + Hash,
C: Clone + Eq + Hash,impl<'v, 'i, 'c, I, C> RowIndex<'c> for DataFrame<'v, 'i, 'c, I, C> where
I: Clone + Eq + Hash,
C: Clone + Eq + Hash,impl<'v, 'i, V, I> RowIndex<'i> for Series<'v, 'i, V, I> where
V: Clone,
I: Clone + Eq + Hash,