tigers

Crates.iotigers
lib.rstigers
version0.1.5
sourcesrc
created_at2022-07-05 07:19:27.929094
updated_at2022-07-06 14:40:48.319377
descriptionDataFrame library for Rust, inspired by Pandas
homepage
repositoryhttps://github.com/adaliaramon/tigers
max_upload_size
id619529
size13,012
(adaliaramon)

documentation

README

Tigers

A DataFrame library for Rust, inspired by Pandas.

Usage

Add the following to your Cargo.toml:

[dependencies]
tigers = "0.1.5"

Examples

use tigers::DataFrame;

fn main() {
    let args: Vec<String> = std::env::args().collect();
    if args.len() != 2 {
        eprintln!("Usage: {} <path>", args[0]);
        std::process::exit(1);
    }
    let df: DataFrame = match DataFrame::from_csv(&args[1]) {
        Ok(df) => df,
        Err(e) => {
            eprintln!("Error reading CSV file \"{}\": {}", args[1], e);
            std::process::exit(1);
        }
    };
    println!("{}", df.head(5));
    println!("{}", df["Compound name"]);
    println!("{}", df[0]);
}

License

Tigers is licensed under the MIT license.

Commit count: 11

cargo fmt