[][src]Trait utah2::util::traits::Operations

pub trait Operations<'a, T> where
    T: 'a + UtahNum
{ fn shape(self) -> (usize, usize);
fn select<U: ?Sized>(
        &'a self,
        names: &'a [&'a U],
        axis: UtahAxis
    ) -> SelectIter<'a, T>
    where
        String: From<&'a U>
;
fn remove<U: ?Sized>(
        &'a self,
        names: &'a [&'a U],
        axis: UtahAxis
    ) -> RemoveIter<'a, T>
    where
        String: From<&'a U>
;
fn append<U: ?Sized>(
        &'a mut self,
        name: &'a U,
        data: ArrayView1<'a, T>,
        axis: UtahAxis
    ) -> AppendIter<'a, T>
    where
        String: From<&'a U>
;
fn inner_left_join(
        &'a self,
        other: &'a DataFrame<T>
    ) -> InnerJoinIter<'a, T>;
fn outer_left_join(
        &'a self,
        other: &'a DataFrame<T>
    ) -> OuterJoinIter<'a, T>;
fn inner_right_join(
        &'a self,
        other: &'a DataFrame<T>
    ) -> InnerJoinIter<'a, T>;
fn outer_right_join(
        &'a self,
        other: &'a DataFrame<T>
    ) -> OuterJoinIter<'a, T>;
fn concat(
        &'a self,
        other: &'a DataFrame<T>,
        axis: UtahAxis
    ) -> ConcatIter<'a, T>;
fn sumdf(&'a mut self, axis: UtahAxis) -> SumIter<'a, T>;
fn mean(&'a mut self, axis: UtahAxis) -> MeanIter<'a, T>;
fn maxdf(&'a mut self, axis: UtahAxis) -> MaxIter<'a, T>;
fn mindf(&'a mut self, axis: UtahAxis) -> MinIter<'a, T>;
fn mapdf<F>(&'a mut self, f: F, axis: UtahAxis) -> MapDFIter<'a, T, F>
    where
        F: Fn(T) -> T,
        F: Fn(T) -> T
;
fn impute(
        &'a mut self,
        strategy: ImputeStrategy,
        axis: UtahAxis
    ) -> ImputeIter<'a, T>; }

Required methods

fn shape(self) -> (usize, usize)

fn select<U: ?Sized>(
    &'a self,
    names: &'a [&'a U],
    axis: UtahAxis
) -> SelectIter<'a, T> where
    String: From<&'a U>, 

fn remove<U: ?Sized>(
    &'a self,
    names: &'a [&'a U],
    axis: UtahAxis
) -> RemoveIter<'a, T> where
    String: From<&'a U>, 

fn append<U: ?Sized>(
    &'a mut self,
    name: &'a U,
    data: ArrayView1<'a, T>,
    axis: UtahAxis
) -> AppendIter<'a, T> where
    String: From<&'a U>, 

fn inner_left_join(&'a self, other: &'a DataFrame<T>) -> InnerJoinIter<'a, T>

fn outer_left_join(&'a self, other: &'a DataFrame<T>) -> OuterJoinIter<'a, T>

fn inner_right_join(&'a self, other: &'a DataFrame<T>) -> InnerJoinIter<'a, T>

fn outer_right_join(&'a self, other: &'a DataFrame<T>) -> OuterJoinIter<'a, T>

fn concat(
    &'a self,
    other: &'a DataFrame<T>,
    axis: UtahAxis
) -> ConcatIter<'a, T>

fn sumdf(&'a mut self, axis: UtahAxis) -> SumIter<'a, T>

fn mean(&'a mut self, axis: UtahAxis) -> MeanIter<'a, T>

fn maxdf(&'a mut self, axis: UtahAxis) -> MaxIter<'a, T>

fn mindf(&'a mut self, axis: UtahAxis) -> MinIter<'a, T>

fn mapdf<F>(&'a mut self, f: F, axis: UtahAxis) -> MapDFIter<'a, T, F> where
    F: Fn(T) -> T,
    F: Fn(T) -> T, 

fn impute(
    &'a mut self,
    strategy: ImputeStrategy,
    axis: UtahAxis
) -> ImputeIter<'a, T>

Loading content...

Implementors

impl<'a, T> Operations<'a, T> for DataFrame<T> where
    T: 'a + UtahNum
[src]

fn shape(self) -> (usize, usize)[src]

Get the dimensions of the dataframe.

fn select<U: ?Sized>(
    &'a self,
    names: &'a [&'a U],
    axis: UtahAxis
) -> SelectIter<'a, T> where
    String: From<&'a U>, 
[src]

Select rows or columns over the specified UtahAxis.

fn remove<U: ?Sized>(
    &'a self,
    names: &'a [&'a U],
    axis: UtahAxis
) -> RemoveIter<'a, T> where
    String: From<&'a U>, 
[src]

Remove rows or columns over the specified UtahAxis.

fn append<U: ?Sized>(
    &'a mut self,
    name: &'a U,
    data: ArrayView1<'a, T>,
    axis: UtahAxis
) -> AppendIter<'a, T> where
    String: From<&'a U>, 
[src]

Append a row or column along the specified UtahAxis.

fn inner_left_join(&'a self, other: &'a DataFrame<T>) -> InnerJoinIter<'a, T>[src]

Perform an inner left join between two dataframes along the specified UtahAxis.

fn outer_left_join(&'a self, other: &'a DataFrame<T>) -> OuterJoinIter<'a, T>[src]

Perform an outer left join between two dataframes along the specified UtahAxis.

fn inner_right_join(&'a self, other: &'a DataFrame<T>) -> InnerJoinIter<'a, T>[src]

Perform an inner right join between two dataframes along the specified UtahAxis.

fn outer_right_join(&'a self, other: &'a DataFrame<T>) -> OuterJoinIter<'a, T>[src]

Perform an outer right join between two dataframes along the specified UtahAxis.

fn sumdf(&'a mut self, axis: UtahAxis) -> SumIter<'a, T>[src]

Sum along the specified UtahAxis.

fn mapdf<F>(&'a mut self, f: F, axis: UtahAxis) -> MapDFIter<'a, T, F> where
    F: Fn(T) -> T, 
[src]

Map a function along the specified UtahAxis.

fn mean(&'a mut self, axis: UtahAxis) -> MeanIter<'a, T>[src]

Get the average of entries along the specified UtahAxis.

fn maxdf(&'a mut self, axis: UtahAxis) -> MaxIter<'a, T>[src]

Get the maximum of entries along the specified UtahAxis.

fn mindf(&'a mut self, axis: UtahAxis) -> MinIter<'a, T>[src]

Get the minimum of entries along the specified UtahAxis.

fn impute(
    &'a mut self,
    strategy: ImputeStrategy,
    axis: UtahAxis
) -> ImputeIter<'a, T>
[src]

Replace empty values with specified ImputeStrategy along the specified UtahAxis.

Loading content...