LazyFrameExtension

Trait LazyFrameExtension 

Source
pub trait LazyFrameExtension {
    // Required method
    fn round_float_columns(self, decimals: u32) -> Self;
}
Expand description

Trait extension for LazyFrame to provide additional functionalities.

Required Methods§

Source

fn round_float_columns(self, decimals: u32) -> Self

Rounds float columns (Float32 and Float64) in a LazyFrame to a specified number of decimal places using optimized Polars expressions.

Columns of other data types remain unchanged.

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 LazyFrameExtension for LazyFrame

Source§

fn round_float_columns(self, decimals: u32) -> Self

Implementors§