Re: group rows on basis of value in a column in CSV with clojure

2018-07-07 Thread Varun J.P
different approch On Tuesday, July 3, 2018 at 10:42:08 PM UTC+5:30, Philipp Neumann wrote: > > 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

Re: group rows on basis of value in a column in CSV with clojure

2018-07-07 Thread Varun J.P
i tried using (nth On Tuesday, July 3, 2018 at 10:42:08 PM UTC+5:30, Philipp Neumann wrote: > > 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

group rows on basis of value in a column in CSV with clojure

2018-07-03 Thread Varun J.P
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)] (le