~axect/Peroxide

4ffac966f3144cec45eb352463f95233a7ce106b — axect 6 months ago 66e90a8 master
Remove unnecessary binaries
3 files changed, 0 insertions(+), 55 deletions(-)

D src/bin/df_bench_cdf.rs
D src/bin/df_bench_csv.rs
D src/bin/df_test.rs
D src/bin/df_bench_cdf.rs => src/bin/df_bench_cdf.rs +0 -18
@@ 1,18 0,0 @@
extern crate peroxide;
use peroxide::*;
use std::error::Error;

fn main() -> Result<(), Box<dyn Error>> {
    let mut df = DataFrame::with_header(vec!["x", "y", "z"]);
    df["x"] = vec![0f64; 100_0000];
    df["y"] = vec![0f64; 100_0000];
    df["z"] = vec![0f64; 100_0000];

    df.write_nc("example_data/df_bench.nc")?;


    let dg = DataFrame::read_nc("example_data/df_bench.nc", vec!["x", "y", "z"])?;
    dg.print();

    Ok(())
}

D src/bin/df_bench_csv.rs => src/bin/df_bench_csv.rs +0 -20
@@ 1,20 0,0 @@
extern crate peroxide;
use peroxide::*;
use std::error::Error;

fn main() -> Result<(), Box<dyn Error>> {
    let mut df = DataFrame::with_header(vec!["x", "y", "z"]);
    df["x"] = vec![0f64; 100_0000];
    df["y"] = vec![0f64; 100_0000];
    df["z"] = vec![0f64; 100_0000];

    df.write_csv("example_data/df_bench.csv")?;
    //df.write_cdf("example_data/df_bench.cdf")?;


    let dg = DataFrame::read_csv("example_data/df_bench.csv", ',')?;
    //let dg = DataFrame::read_cdf("example_data/df_bench.cdf", vec!["x", "y", "z"])?;
    dg.print();

    Ok(())
}

D src/bin/df_test.rs => src/bin/df_test.rs +0 -17
@@ 1,17 0,0 @@
extern crate peroxide;
use peroxide::*;
use std::error::Error;

fn main() -> Result<(), Box<dyn Error>> {
    #[cfg(feature = "dataframe")]
    {
        let mut a = DataFrame::new();

        a.insert("x", vec![1f64, 2f64, 3f64]);
        a.insert("y", vec![4f64, 5f64]);
        a.insert("z", vec![6f64]);

        a.print();
    }
    Ok(())
}