Skip to content

Instantly share code, notes, and snippets.

View GreatRedOne99's full-sized avatar

John Donahue GreatRedOne99

  • 20:56 (UTC -05:00)
View GitHub Profile
@nazq
nazq / describe.rs
Created September 29, 2025 18:57
Polars DataFrame describe() implementation for Rust - provides summary statistics like pandas/polars Python
//! DataFrame describe() functionality for Polars in Rust
//!
//! This module provides a `describe()` method for both DataFrame and LazyFrame,
//! similar to pandas/polars describe() in Python. It computes summary statistics
//! including count, null_count, mean, std, min, percentiles, and max.
//!
//! The implementation follows the Python polars pattern closely, avoiding
//! unnecessary data collection when working with LazyFrames.
use anyhow::Result;