dstockto/csv-chef

Make identity poop out column headers

stringerbell opened this issue · 3 comments

Running csv-chef identity ./foo.csv

This returns something like:

1 <- 1
2 <- 2
3 <- 3
...

It seems like it'd be handy to have annotated names, like such as:

1 <- 1 # voter id
2 <- 2 # first
3 <- 3 # last
...

Did you mean with header output turned on, or either way?

ooh -- yes. I'm mostly just getting used to this and poking around. I think I'm imagining not having to always reference the input file manually if you forget which index maps to which column

I like the comment idea though. Could be helpful.