0CodeKit icon

0CodeKit

A toolbox of no-code utilities

Actions114

Convert → Convert a CSV to Array

AI-generated

Overview

This node operation converts a CSV string into an array format. It is useful for scenarios where CSV data needs to be parsed and manipulated as an array within workflows, such as data transformation, integration, or analysis tasks. For example, converting CSV data from an external source into an array for further processing or filtering.

Use Case Examples

  1. Converting CSV data received from an API into an array for easier manipulation.
  2. Parsing CSV content from a file to extract rows and columns as an array for data processing.

Properties

Name Meaning
Code Variables Defines variables used in the code editor for the selected function, allowing dynamic value assignment.
CSV The CSV string input that will be converted to an array.
Options Additional options for CSV conversion, including delimiter and whether to omit the first row.

Output

JSON

  • array - The resulting array parsed from the CSV input.

Dependencies

  • An API key credential for the CodeKit API is required to perform the conversion.

Troubleshooting

  • Ensure the CSV input is correctly formatted; malformed CSV can cause parsing errors.
  • If the delimiter is unknown, leaving it empty allows auto-detection, but this may not always be accurate.
  • If the first row contains headers and should be omitted, enable the 'Trim CSV' option to avoid including headers in the output array.

Discussion