Skip to main content

ToDataFrameTrait

Trait ToDataFrameTrait 

Source
pub trait ToDataFrameTrait {
    // Required methods
    fn to_dataframe(&self) -> Result<DataFrame, PolarsError>;
    fn empty_dataframe() -> Result<DataFrame, PolarsError>;
    fn schema() -> Result<Vec<(String, DataType)>, PolarsError>;
}

Required Methods§

Source

fn to_dataframe(&self) -> Result<DataFrame, PolarsError>

§Errors

Returns an error if DataFrame construction fails.

Source

fn empty_dataframe() -> Result<DataFrame, PolarsError>

§Errors

Returns an error if DataFrame construction fails.

Source

fn schema() -> Result<Vec<(String, DataType)>, PolarsError>

§Errors

Returns an error if schema generation fails.

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.

Implementations on Foreign Types§

Source§

impl ToDataFrame for ()

Implementors§