#[macro_use] extern crate peroxide; use peroxide::fuga::*; fn main() -> Result<(), Box> { let a = Series::new(vec![1, 2, 3, 4]); let b = Series::new(c!(0.1, 0.2, 0.3, 0.4)); let c = Series::new(vec![true, false, true, false]); let d = Series::new(vec!['a', 'b', 'c', 'd']); let mut df = DataFrame::new(vec![a, b, c, d]); df.set_header(vec!["a", "b", "c", "d"]); df.print(); #[cfg(feature = "csv")] { df.write_csv("example_data/df_csv.csv")?; let mut dg = DataFrame::read_csv("example_data/df_csv.csv", ',')?; dg.print(); dg[0].dtype.print(); dg.as_types(vec![USIZE, F32, Bool, Char]); println!(""); dg.print(); dg[0].dtype.print(); } Ok(()) }