CSV cheat sheet
This cheat sheet shows common ways to read and write CSV files with readCsv and writeCsv. The examples write files to /data, the data directory in Deephaven's Docker images, and read them back from there or from a URL. To map it to a directory on your computer, see Docker bind mounts. In other deployments, use any path the server can read and write.
Create a table
The examples on this page write and read this sample table. Its SinX column is null in every other row, so the write examples can show how null cells are written.
Write CSV files
writeCsv writes a table, or the columns you list, to a CSV file on the server.
Read CSV files
readCsv reads a CSV file from a server path or a URL. A CsvSpecs object handles files with no header row, column types, and other delimiters.