Skip to main content

GGData

Trait GGData 

Source
pub trait GGData {
    // Required method
    fn into_dataframe(self) -> DataFrame;
}
Expand description

Trait for types that can be converted into our internal DataFrame.

Required Methods§

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl GGData for DataFrame

Available on crate feature polars only.

polars DataFrame input: convert each column to our internal format.

Source§

impl GGData for Vec<(String, Vec<Value>)>

Column-oriented input: Vec of (name, values) pairs.

Source§

impl GGData for Vec<HashMap<String, Value>>

Row-oriented input: Vec of HashMaps.

Implementors§

Source§

impl GGData for ggplot_rs::data::DataFrame

Identity: DataFrame passes through.