Crates.io | csv_stacker |
lib.rs | csv_stacker |
version | 0.1.3 |
source | src |
created_at | 2022-11-14 03:49:39.286543 |
updated_at | 2022-11-14 16:35:38.673738 |
description | A simple utility to vertically stack CSV files with partially matching column headers. |
homepage | |
repository | https://github.com/justinluther502/csv_stacker |
max_upload_size | |
id | 714678 |
size | 122,892 |
A simple binary utility to vertically stack a bunch of CSV files with partially matching column headers.
Can be configured using Config.toml to define 3 parameters:
I use this to aggregate individual stock trading transaction logs into a single combined csv history file.
Say you have two CSV files, "foo.csv" and "bar.csv" in a relative dirctory named "csvs".
foo.csv
bar.csv
You can use the following configuration toml file to stack these csvs into "stacked.csv".
Config.toml
csv_dir_path = "csvs"
outfile = "stacked.csv"
colnames = [
"Player",
"Position",
"Number",
]
Running the binary will result in the following combined csv file "stacked.csv".
stacked.csv