pub trait EnhancedPlotExt {
// Required methods
fn plot(&self) -> StatPlotBuilder<'_>;
fn plot_line<P: AsRef<Path>>(&self, column: &str, path: P) -> Result<()>;
fn plot_scatter<P: AsRef<Path>>(
&self,
x_col: &str,
y_col: &str,
path: P,
) -> Result<()>;
fn plot_hist<P: AsRef<Path>>(
&self,
column: &str,
path: P,
bins: Option<usize>,
) -> Result<()>;
fn plot_box<P: AsRef<Path>>(
&self,
value_col: &str,
group_col: &str,
path: P,
) -> Result<()>;
fn plot_corr<P: AsRef<Path>>(&self, path: P) -> Result<()>;
fn plot_distributions<P: AsRef<Path>>(
&self,
path_prefix: P,
) -> Result<Vec<String>>;
fn plot_report<P: AsRef<Path>>(&self, output_dir: P) -> Result<Vec<String>>;
}Expand description
Enhanced plotting extension trait for DataFrame
Required Methods§
Sourcefn plot(&self) -> StatPlotBuilder<'_>
fn plot(&self) -> StatPlotBuilder<'_>
Get a statistical plotting builder
Sourcefn plot_line<P: AsRef<Path>>(&self, column: &str, path: P) -> Result<()>
fn plot_line<P: AsRef<Path>>(&self, column: &str, path: P) -> Result<()>
Quick line plot of a column
Sourcefn plot_scatter<P: AsRef<Path>>(
&self,
x_col: &str,
y_col: &str,
path: P,
) -> Result<()>
fn plot_scatter<P: AsRef<Path>>( &self, x_col: &str, y_col: &str, path: P, ) -> Result<()>
Quick scatter plot of two columns
Sourcefn plot_hist<P: AsRef<Path>>(
&self,
column: &str,
path: P,
bins: Option<usize>,
) -> Result<()>
fn plot_hist<P: AsRef<Path>>( &self, column: &str, path: P, bins: Option<usize>, ) -> Result<()>
Quick histogram of a column
Sourcefn plot_box<P: AsRef<Path>>(
&self,
value_col: &str,
group_col: &str,
path: P,
) -> Result<()>
fn plot_box<P: AsRef<Path>>( &self, value_col: &str, group_col: &str, path: P, ) -> Result<()>
Quick box plot grouped by category
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.