tabiew 0.16.0

A lightweight TUI application to view and query tabular data files, such as CSV, TSV, and parquet.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use polars::frame::DataFrame;
use serde::{Deserialize, Serialize};

#[derive(Debug, Serialize, Deserialize)]
pub struct Shape {
    pub height: usize,
    pub width: usize,
}

impl From<&DataFrame> for Shape {
    fn from(value: &DataFrame) -> Self {
        Self {
            height: value.height(),
            width: value.width(),
        }
    }
}