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

General CSV utility #17

Open
9 of 17 tasks
kurtlawrence opened this issue Sep 11, 2023 · 0 comments
Open
9 of 17 tasks

General CSV utility #17

kurtlawrence opened this issue Sep 11, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@kurtlawrence
Copy link
Owner

kurtlawrence commented Sep 11, 2023

A general structure for working with table data.

Thing might expand for more than just CSVs, the initial use case is to read in a CSV and quickly filter out columns and rows using string predicates.
This avoids needing to specify concrete serialisable structures, and is great for very lightweight scripts that just needs to quickly transform some data.

Potentially this resurrects table.


Branch table-utility tracks the implementation.

It can be used in scripts with

[dependencies.rust-script-ext]
git = "https://github.com/kurtlawrence/rust-script-ext"
branch = "table-utility"

Reducing

  • filter rows
  • filter cols

Insertion

  • appending column
  • insert row
  • push row

Mapping

  • mapping column
  • renaming columns
  • map table
  • typify columns

Ordering

  • picking columns
  • sort rows
  • sort columns

Fetching

  • get row
  • get column

IO

  • pretty print table
  • persist table
  • from csv
@kurtlawrence kurtlawrence added the enhancement New feature or request label Sep 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant