rust-script-ext icon indicating copy to clipboard operation
rust-script-ext copied to clipboard

General CSV utility

Open kurtlawrence opened this issue 1 year ago • 0 comments

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

  • [x] filter rows
  • [x] filter cols

Insertion

  • [x] appending column
  • [ ] insert row
  • [ ] push row

Mapping

  • [x] mapping column
  • [x] renaming columns
  • [ ] map table
  • [ ] typify columns

Ordering

  • [x] picking columns
  • [ ] sort rows
  • [ ] sort columns

Fetching

  • [ ] get row
  • [ ] get column

IO

  • [x] pretty print table
  • [x] persist table
  • [x] from csv

kurtlawrence avatar Sep 11 '23 01:09 kurtlawrence