[DCSV-5] No option for parsing into maps Created: 21/May/13 Updated: 25/May/17 Resolved: 25/May/17
|Reporter:||Gary Fredericks||Assignee:||Jonas Enlund|
I imagine a very common use case for parsing CSVs is to get the output as a sequence of maps. I'm happy to provide a patch for this but wanted to make sure I had the right design.
My initial idea is to add another option to read-csv with the name :headers which can be a sequence of values, or a flag such as :first-row. Presumably though we ought to also support using the first row as keywords rather than strings, so I'm not sure whether that ought to be another option or a different flag (e.g., :first-row-keywords).
|Comment by Jonas Enlund [ 21/May/13 1:28 PM ]|
I've seen this feature request before so I think that something like this should be added. One approach would be to provide a helper function:
|Comment by Cees van Kemenade [ 24/May/13 12:41 PM ]|
I've ran into the same question and prepared a small library to do my csv processing.
Feel free to reuse parts of the code. You can find the code here:
|Comment by Jonas Enlund [ 25/May/17 1:25 PM ]|
Instead of adding some helper function to achieve this I added some more docs to the README on how to do this