Skip to content

General CSV utility #17

@kurtlawrence

Description

@kurtlawrence

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions