Skip to content

taipy.core.data.CSVDataNode

Bases: DataNode

Data Node stored as a CSV file.

Attributes:

Name Type Description
config_id str

Identifier of the data node configuration. This string must be a valid Python identifier.

scope Scope

The scope of this data node.

id str

The unique identifier of this data node.

name str

A user-readable name of this data node.

parent_id str

The identifier of the parent (pipeline_id, scenario_id, cycle_id) or None.

last_edit_date datetime

The date and time of the last modification.

job_ids List[str]

The ordered list of jobs that have written this data node.

cacheable bool

True if this data node is cacheable. False otherwise.

validity_period Optional[timedelta]

The validity period of a cacheable data node. Implemented as a timedelta. If validity_period is set to None, the data_node is always up-to-date.

edit_in_progress bool

True if a task computing the data node has been submitted and not completed yet. False otherwise.

path str

The path to the CSV file.

properties dict[str, Any]

A dictionary of additional properties. The properties must have a "default_path" or "path" entry with the path of the CSV file.

write_with_column_names(data, columns=None, job_id=None)

Write a selection of columns.

Parameters:

Name Type Description Default
data Any

The data to write.

required
columns List[str]

The list of column names to write.

None
job_id JobId

An optional identifier of the writer.

None