Publication dateMar 9, 2022
Confidentiality public Public
Table replace
TRANSFORMER
Typing name : TASK.gws_core.TableReplace Brick : gws_core Replace values in a table with other values
You can provided multiple values to replace. It also supports regex. If multiple values are provided,
there are replaced sequentially, so the second replace can rewrite the first replace.
The table's tags are kept.
For each configuration, if Is regex is checked, the search value is considerer as a regex and there is no modification to it.
Otherwise the search value is converted (see Convertion). The replace value is always converted.
Convertion
The params values supports 2 special values:
NaN: convert to NaN
None: convert to None
If the value is someting else, the system tries to convert it to a number. If this is convertible to a number the system will use the number, otherwise the value is kept as is.
login
Input
Table
2d excel like table
logout
Output
Table
2d excel like table
settings
Configuration
Type : ListMaximum occurrences number : -1Use 'NaN' or 'None' for NaN/None or leave empty for empty string
Type : stringUse 'NaN' for NaN, 'None' for None or leave empty for empty string
Type : stringIf true, the search value is interpreted as a regex
Type : bool Technical bricks to reuse or customize
Have you developed a brick?
Share it to accelerate projects for the entire community.