Blog
Booth AI
STABLE

Update CSV Column

Updates an existing column or adds a new one to a CSV file with the specified data. This node is essential for modifying datasets in CSV format, whether to correct, update, or enrich the data. Inputs: - csv_file_name: The name of the CSV file to be updated. - column_index: The index of the column to be updated, starting from 0. - has_headers: Indicates if the first row contains column headers. Optional. - is_new_column: Indicates if the column to be updated is a new one. Optional. - column_contents: A list of strings with the new values for the specified column. Output: - updated_csv_file_name: The name of the updated CSV file.

Inputs
CSV Content
The CSV file that needs to be updated.
Column Index
The position of the column to be updated in the CSV file.
Column Contents
The new values for the specified column.
Has Headers
Indicates whether the first row of the CSV file contains column headers.
Is New Column
Indicates whether the column to be updated is a new one.
Outputs
Value
The output string