csv_processor/
lib.rs

1//! # CSV Processor
2//!
3//! A fast CSV analysis library with automatic type inference and comprehensive statistics.
4//!
5//! ## Features:
6//!
7//! - **Automatic Type Inference**: Intelligently detects integers, floats, booleans, and strings
8//! - **Statistical Operations**: Built-in sum, mean, min, max calculations for all numeric types
9//! - **Self-Analyzing Columns**: Each column type implements its own statistical operations
10//! - **Professional Reporting**: Formatted statistical reports in multiple formats
11//!
12//! ## Quick Start:
13//!
14//! ```rust,no_run
15//! use csv_processor::{DataFrame, reporter::generate_info_report};
16//!
17//! // Load CSV file
18//! let df = DataFrame::from_csv("data.csv")?;
19//!
20//! // Generate statistical report
21//! let report = generate_info_report(&df);
22//! println!("{}", report);
23//! # Ok::<(), Box<dyn std::error::Error>>(())
24//! ```
25
26pub mod config;
27pub mod frame;
28pub mod reporter;
29pub mod scalar;
30pub mod series;
31pub mod types;
32
33// Core data structures
34pub use frame::DataFrame;
35pub use scalar::CellValue;
36pub use series::ColumnArray;
37pub use types::{CsvError, Dtype};
38
39// CLI-specific exports (optional for library users)
40pub use config::{parse_command, parse_config, Command, Config, ConfigError};