Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Strictly typed dataframes using macros #4

Open
abhemanyus opened this issue Nov 1, 2023 · 0 comments
Open

Strictly typed dataframes using macros #4

abhemanyus opened this issue Nov 1, 2023 · 0 comments
Assignees

Comments

@abhemanyus
Copy link
Collaborator

The current architecture hides data types behind a generic interface. The resultant code is cumbersome to work with, and bereft of type information that should ideally be present.
Since most data-processing tasks will be performed on data with a known structure, providing an API that can make effective use of it will greatly improve the user experience.

Usage example:

#[fisher_rs::Table]
struct Citizen {
  name: String,
  age: u32,
  country: String
}

let citizens = Citizen::load_csv("citizens.csv");
let mean_age: f32 = citizens.age.mean();
let first_citizen = citizens.first().unwrap();

The implementation can provide various views into the internal data. Collective: citizens.age; Individual: citizens.first().
Lazy loading can be implemented for extremely large datasets.
Using views, external libraries can be provided data in suitable structures.

@abhemanyus abhemanyus self-assigned this Nov 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant