Combee

Combee is a flexible data analysis library written in pure Rust inspired by pandas (python).

Installation

Run in a Rust project directory:

bash cargo add combee

Examples

1) Below an example of loading a CSV file, filtering the dataset, and applying a function to each row:

```rust use std::fmt::Display; use serde::{Serialize, Deserialize};

use combee;

[derive(Clone, Deserialize, Serialize)]

struct Data { name: String, age: u32 }

[derive(Clone, Deserialize, Serialize)]

struct Message { message: String }

impl Display for Message { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { write!(f, "{}", self.message) } }

fn main() { let df = combee::readcsv::(String::from("dataset.csv")).unwrap(); let dffiltered = df.filter(|row| row.age < 27); let dfmessage = dffiltered.apply(|row| Message { message: format!("Hello {} with {} years!", row.name, row.age)}); let messages = df_message.take(2);

println!("{}", messages[0]);
println!("{}", messages[1]);

} ```

Acknowledgments

Made with Love by Daniel Santana