📊 rustreg
A lightweight Rust library providing basic statistical operations and CSV parsing. The main goal of the crate is to
provide simple and fats way to perform Data Preprocessing (Standardization and Normalization)
📘 API Documentation
struct DataSet
/// A collection of numeric (f64) data, with methods for
/// basic statistical analysis.
impl DataSet
/// Creates a new DataSet from a Vec<f64>.
📥 CSV Loading Functions
/// Reads all rows from a CSV file at `path`.
/// Returns `Ok(Vec<Vec<String>>)` or an error.
🔧 Example Usage (in main.rs)
use ;
📄 data.csv Example
Age,EstimatedSalary,Purchased
19,19000,0
35,20000,0
26,43000,0
27,57000,0
19,76000,0
27,58000,0
📝 Notes
read_csv_rowsretains headers; skip the first row if needed.red_csv_colswillunwrap()during parsing; use proper error handling for untrusted CSV inputs.normalized()andstandardized()mutate the dataset in-place.