Read CSV
Read CSV
Section titled “Read CSV”Type: read-csv · Package: CSV Activities v1.0.0 · Output: DataTable
Reads a CSV file and returns its contents as a DataTable, ready to traverse, filter, or dump to another source.
How it works
Section titled “How it works”Read the file from path using the indicated delimiter. By default it takes the first row as headers (hasHeader = true), so you access cells by name.
Required parameters
Section titled “Required parameters”| Parameter | Editor | Description |
|---|---|---|
path | expression | CSV file path. |
Optional parameters
Section titled “Optional parameters”| Parameter | Editor | Description |
|---|---|---|
delimiter | text | Field separator. By default ",". Use ";" or tab depending on your file. |
hasHeader | boolean | The first row is the headers. By default true. |
encoding | text | Coding. By default "utf-8". |
Output
Section titled “Output”Returns a DataTable.
Example
Section titled “Example”Read CSV path = = asset("clientes.csv") delimiter = ";" → output: clientesFor Each items = = clientes itemVariable = fila └─ activities: Log message = = str(row["Nombre"]) + " — " + str(row["Correo"])