1 unstable release

0.1.0 May 16, 2020

#1254 in Data structures

BSD-3-Clause

11KB
80 lines

Puruda

Pure rust dataframe

Example

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");
}

Congruous Data Format

  • CSV Trait
    • write_csv
    • read_csv
  • HDF5
  • JSON

Dependencies

~1.2–1.7MB
~21K SLoC