NEW
Action
¶
Bases: BaseSchemaAction
Add a new field to the dataframe, populated with a single value.
Script template
"NEW > 'destination_field' < ['value']"
Where value
is a unique string
value which will be assigned to the entire column. This is useful where data form
part of a series and each transformed dataset will be concatenated into a single larger table. This can function as
a grouping identifier.
NOTE: the value
will be assigned as the default term for the destination_field
FieldModel is part of the
Schema, and the default
in the constraints
. Useful when creating a data series column. Will usually be added
automatically after parsing of the scripts.
Example
"NEW > 'la_code' < ['E06000044']"