CSV Import

Load a CSV file from disk as a collection of rows and columns.

What it does

CSV Import reads a CSV file from disk and turns it into a table collection for any node that works with tables: filter rows, drive an Iterator, plot values, or pull individual columns as attributes. The file is parsed once, returning the table alongside row count, column count, the column names, and any parse error.

Column names come from the header row when it is present, otherwise columns get default names. With type detection on, each column is read as numbers, true/false, or text, so downstream maths and comparisons work without extra conversion.

When to use it

ParameterTypeDefault
pathString""
has_headerBooleantrue
delimiterString"comma"
auto_typeBooleantrue
max_rowsNumber0
skip_rowsNumber0

Gotchas

If the file cannot be found or fails to parse, the table output is empty. Check the Error output rather than assuming the table is just short.

Worked example

  1. Add a CSV Import node and set Path to your CSV file.

  2. Leave Has Header on if row one contains column names; turn it off for headerless files.

  3. Check Delimiter matches your file. Comma is the default; tab, semicolon, pipe, and space are also available.

  4. Wire Table into a node that consumes a collection, and check Row Count, Column Count, and Error if something looks off.

See also

JSON Import · Serial · Collections