Struct etl::DataFrame
[−]
[src]
pub struct DataFrame { /* fields omitted */ }
Primary dataframe structure
Methods
impl DataFrame
[src]
fn nrows(&self) -> usize
[src]
Number of rows in dataframe
fn load(config_file_path: &Path) -> Result<(DataConfig, DataFrame), Error>
[src]
Create a new DataConfig and DataFrame from the configuration file specified
fn merge(&mut self, other: DataFrame) -> Result<(), Error>
[src]
Merge dataframe with another dataframe
fn fieldnames(&self) -> Vec<&String>
[src]
List of the field names for this dataframe
fn get_unsigned_field<T: ?Sized + Borrow<str>>(
&self,
field_name: &T
) -> Option<&Vec<u64>>
[src]
&self,
field_name: &T
) -> Option<&Vec<u64>>
Get an unsigned integer field from the dataframe (if exists for given field name)
fn get_signed_field<T: ?Sized + Borrow<str>>(
&self,
field_name: &T
) -> Option<&Vec<i64>>
[src]
&self,
field_name: &T
) -> Option<&Vec<i64>>
Get an signed integer field from the dataframe (if exists for given field name)
fn get_text_field<T: ?Sized + Borrow<str>>(
&self,
field_name: &T
) -> Option<&Vec<String>>
[src]
&self,
field_name: &T
) -> Option<&Vec<String>>
Get an string field from the dataframe (if exists for given field name)
fn get_boolean_field<T: ?Sized + Borrow<str>>(
&self,
field_name: &T
) -> Option<&Vec<bool>>
[src]
&self,
field_name: &T
) -> Option<&Vec<bool>>
Get an boolean field from the dataframe (if exists for given field name)
fn get_float_field<T: ?Sized + Borrow<str>>(
&self,
field_name: &T
) -> Option<&Vec<f64>>
[src]
&self,
field_name: &T
) -> Option<&Vec<f64>>
Get an floating point field from the dataframe (if exists for given field name)
fn as_matrix(&self) -> Result<(Vec<String>, Matrix), Error>
[src]
Generate a matrix from the dataframe as well as the field names for the columns of that matrix. String fields are ignored. Integer and boolean fields are transformed into floating point numbers.
fn sub<T>(&self, cols: Vec<T>) -> Result<DataFrame, Error> where
T: Borrow<str>,
[src]
T: Borrow<str>,
Generate a sub-dataframe consisting of the columns specified