phrs 0.4.1

A tabular data shell tool compatible with ph
Documentation
1
2
3
4
5
6
use crate::error::PhError;
use polars::prelude::*;
/// Provisional shape formatting; validate against the pinned Python oracle.
pub fn run(df: DataFrame) -> Result<Vec<u8>, PhError> {
    Ok(format!("rows,columns\n{},{}\n", df.height(), df.width()).into_bytes())
}