You may want to take a look at my library semantic-csv, which lets you cast
rows as maps instead of vectors, so that you can group-by a column name
instead of a positional index.
https://github.com/metasoarous/semantic-csv
On Saturday, July 7, 2018 at 11:07:50 PM UTC-7, Varun J.P wrote:
>
>
Hi.
Check out the doc to group-by and try (group-by #(nth % 2) testvector)
Regards
Am So., 8. Juli 2018 um 08:08 Uhr schrieb Varun J.P :
> Hi All,
> Thanks for the tip to use (group-by last …)
> It was working fine until my csv file got updated. Now i am not sure abt
> the number of columns in
Hi All,
Thanks for the tip to use (group-by last …)
It was working fine until my csv file got updated. Now i am not sure abt
the number of columns in my csv. It could change in every row, but I still
need to group it with Heading 3 itself.
Example of my updated CSV is as below
Heading1
Hi All,
Thanks for the tip to use (group-by last …)
It was working fine until my csv file got updated. Now i am not sure abt
the number of columns in my csv. It could change in every row, but I still
need to group it with Heading 3 itself.
Example of my updated CSV is as below
Heading1
Hi.
This is a job for (group-by last ...)
Regards
Varun J.P schrieb am Di., 3. Juli 2018, 19:05:
> My CSV file is something like the attached file which could have 'n'
> number of line. I need to group by the values in the last column.
> Current I believe the below code will return me a
My CSV file is something like the attached file which could have 'n' number
of line. I need to group by the values in the last column.
Current I believe the below code will return me a vector of vector.
(defn read-csv-file
[path]
(try
(with-open [input-file (io/reader path)]