pub struct SimpleDataFrame { /* private fields */ }Expand description
Simple DataFrame implementation
Implementations§
Source§impl SimpleDataFrame
impl SimpleDataFrame
Sourcepub fn new(data: Array2<Float>, column_names: Vec<String>) -> Result<Self>
pub fn new(data: Array2<Float>, column_names: Vec<String>) -> Result<Self>
Create new DataFrame from Array2 and column names
Sourcepub fn from_array(data: Array2<Float>) -> Self
pub fn from_array(data: Array2<Float>) -> Self
Create from Array2 with auto-generated column names
Sourcepub fn into_array(self) -> Array2<Float>
pub fn into_array(self) -> Array2<Float>
Consume and return underlying array
Trait Implementations§
Source§impl Clone for SimpleDataFrame
impl Clone for SimpleDataFrame
Source§impl DataFrameInterface for SimpleDataFrame
impl DataFrameInterface for SimpleDataFrame
Auto Trait Implementations§
impl Freeze for SimpleDataFrame
impl RefUnwindSafe for SimpleDataFrame
impl Send for SimpleDataFrame
impl Sync for SimpleDataFrame
impl Unpin for SimpleDataFrame
impl UnsafeUnpin for SimpleDataFrame
impl UnwindSafe for SimpleDataFrame
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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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 more