Crates.io | tigers |
lib.rs | tigers |
version | 0.1.5 |
source | src |
created_at | 2022-07-05 07:19:27.929094 |
updated_at | 2022-07-06 14:40:48.319377 |
description | DataFrame library for Rust, inspired by Pandas |
homepage | |
repository | https://github.com/adaliaramon/tigers |
max_upload_size | |
id | 619529 |
size | 13,012 |
A DataFrame library for Rust, inspired by Pandas.
Add the following to your Cargo.toml
:
[dependencies]
tigers = "0.1.5"
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]);
}
Tigers is licensed under the MIT license.