6 releases
0.1.5 | Jul 6, 2022 |
---|---|
0.1.4 | Jul 6, 2022 |
#343 in Database implementations
10KB
240 lines
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.
Dependencies
~1.2–1.6MB
~19K SLoC