Set Tables attributes¶
The Table data type includes an additional container, besides the data container, for storing attributes. An attribute is stored as a scalar value together with a header.
The standard library contains two nodes for setting and getting Table attributes.
-
class
node_attributes_tables.
SetTablesAttributes
[source]¶ Set the attributes in Tables with the headers and values in attribute Tables, only the values on the first row.
Inputs: - attributes : [table]
Table with attributes along the columns. Only the first row of the Table will be imported as attributes, due to that an attribute is defined to be a scalar value
- in_data : [table]
Table with data
Outputs: - out_data : [table]
Table with updated attribute container