phrs 0.4.1

A tabular data shell tool compatible with ph
Documentation
1
2
3
4
5
6
7
8
use crate::{compat::describe::Describable, error::PhError, io};
use polars::prelude::*;

pub fn run(df: DataFrame) -> Result<Vec<u8>, PhError> {
    let result = df.describe(None).map_err(|e| PhError::new(e.to_string()))?;

    io::write_csv(result)
}