Trait Debug

Source
pub trait Debug {
    // Required methods
    fn debug(self) -> Self;
    fn debug_labeled(self, label: &str) -> Self;
    fn debug_closure(self, f: impl FnOnce(&DataFrame)) -> Self;
}
Expand description

A trait to debug a dataframe

Required Methods§

Source

fn debug(self) -> Self

Print out the dataframe

§Example
#use polars::prelude::*;
#use polars_helpers::Debug;
let df = df!("a" => [1, 2, 3]);
df.debug();
Source

fn debug_labeled(self, label: &str) -> Self

Print out the dataframe with a label

§Example
#use polars::prelude::*;
#use polars_helpers::Debug;
let df = df!("a" => [1, 2, 3]);
df.debug_labeled("my dataframe");
Source

fn debug_closure(self, f: impl FnOnce(&DataFrame)) -> Self

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 Debug for DataFrame

Source§

fn debug(self) -> Self

Source§

fn debug_labeled(self, label: &str) -> Self

Source§

fn debug_closure(self, f: impl FnOnce(&DataFrame)) -> Self

Source§

impl Debug for LazyFrame

Source§

fn debug(self) -> Self

Source§

fn debug_labeled(self, label: &str) -> Self

Source§

fn debug_closure(self, f: impl FnOnce(&DataFrame)) -> Self

Implementors§