-
Notifications
You must be signed in to change notification settings - Fork 17
csv.q
Jas edited this page Mar 6, 2017
·
1 revision
This library provides additional functionality on top of the standard 0:
function provided within kdb+.
.csv.load
loads a CSV with the following changes:
- All empty lines and lines beginning with a comment character
/
are ignored - CSV is checked to ensure there are the correct number of entries per line for the types specified
This function is used by .csv.load
to convert the data into a kdb table. It is provided as a separate function to parse CSV data if received in a different way (e.g. via HTTP).
.csv.write
takes the path and some table data and writes it into CSV format. The following checks are performed prior to write:
- If the table is keyed it is unkeyed
- Are all columns writeable in CSV format. If not,
UnsupportedColumnTypeException
is thrown.
Copyright (C) Sport Trades Ltd 2017 - 2020, John Keys and Jaskirat Rajasansir 2020 - 2024