Crates.io | puruda |
lib.rs | puruda |
version | 0.1.0 |
source | src |
created_at | 2020-05-16 10:24:39.83723 |
updated_at | 2020-05-16 10:24:39.83723 |
description | Pure Rust DataFrame |
homepage | |
repository | https://github.com/Axect/Puruda |
max_upload_size | |
id | 242313 |
size | 17,326 |
Pure rust dataframe
extern crate puruda;
use puruda::*;
fn main() {
let a = vec![1, 2, 3];
let b = vec!["a", "b", "c"];
let mut c2 = Col2::from_cols(a, b);
c2.c1().print();
c2.c2().print();
let c = c2.c1_mut();
(*c) = vec![4, 5, 6];
assert_eq!(c2.c1(), &vec![4, 5, 6]);
c2.write_csv("hello.csv", ',').expect("Can't write csv");
}
write_csv
read_csv