Ensure columns in Tables with Table¶
Ensure the existence of one or several signals in Tables by either getting an exception or adding a dummy signal to the dataset.
-
class
node_ensure_columns.
EnsureColumnsOperation
[source]¶ Ensure the existence of columns in Tables by using an additional Table with the name of the columns that must exist. Select to get the result of the check as the form of an exception or as an added dummy signal. The type of the dummy signal is by default float with all elements set to NaN. Finally mask, can also be used. In that case, a type column also needs to be selected. Otherwise it is ignored. When mask is used, and ensured columns are missing, these will be created as fully masked arrays of the select types.
Ref. nodes: Inputs: - selection : table
Selection
- tables : [table]
Input Tables
Outputs: - tables : [table]
Output Table
Configuration: - Column with column names
Name of column with names of the columns that must exist
- Column with column types
Name of column with types of the columns that must exist, only for use with “Masked Signal” reporting
- Action of missing columns:
Select action if columns are missing