pub trait DataFrameInterface {
// Required methods
fn nrows(&self) -> usize;
fn ncols(&self) -> usize;
fn column_names(&self) -> Vec<String>;
fn to_array2(&self) -> Result<Array2<Float>>;
fn column(&self, name: &str) -> Result<Array1<Float>>;
fn select(&self, columns: &[String]) -> Result<Box<dyn DataFrameInterface>>;
// Provided method
fn shape(&self) -> (usize, usize) { ... }
}Expand description
DataFrame-like interface for decomposition input
Required Methods§
Sourcefn column_names(&self) -> Vec<String>
fn column_names(&self) -> Vec<String>
Get column names
Provided Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".