cast
Interprets and changes a column’s data to another (semantic) type.
This has two consequences:
- It will allow the resulting column to be used by steps only accepting the new type,
e.g. when casting a column of concatenated texts to the
"url"
type, so that it may be used where Urls are expected (e.g. the stepfetch_url_content
). - It will change any values not conformant with the new type to the missing value (NaN). E.g.,
casting a column of mixed data containing numbers to the
"number"
type, will replace all values that cannot be read as numbers with NaN.
Note that for each possible type a column can be cast to (via the "type"
parameter, e.g. "number"
,
"category"
etc.), the steps accepts different configuration parameters. See the subsections under
Parameters below for further details.
Was this page helpful?