rrrs 0.1.1

Welcome to RRRS, a rapid, hyper-optimized CSV random sampling tool designed with performance and efficiency at its core.
1
2
3
4
5
6
7
8
9
10
11
12
use polars::prelude::*;
use std::error::Error;

pub async fn load_csv(filepath: &str) -> Result<DataFrame, Box<dyn Error>> {
    let df = CsvReader::from_path(filepath)?
        .infer_schema(Some(10))
        .has_header(true)
        .finish()
        .map_err(|e| e.into());

    df
}