(data->csv data)
(data->csv data header)
Converts a list of maps [map1 ... mapN] with common keys into the list [header row1 row2 ... rowN].
A header can be specified, and the specified key order will be used.
If a header is not specified, a header will be generated from the list of distinct keys present across all the input maps in 'data'. Each rowK is a list of data of the same length as the header, where each entry rowK[i] corresponds to mapK.get(header[i]).
Converts a list of maps [map1 ... mapN] with common keys into the list [header row1 row2 ... rowN]. A header can be specified, and the specified key order will be used. If a header is not specified, a header will be generated from the list of distinct keys present across all the input maps in 'data'. Each rowK is a list of data of the same length as the header, where each entry rowK[i] corresponds to mapK.get(header[i]).
(write-csv! filename data)
Writes formatted data as a CSV to disk.
Use data->csv to transform a sequence of maps to correctly formatted CSV data.
Writes formatted data as a CSV to disk. Use data->csv to transform a sequence of maps to correctly formatted CSV data.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close