Extract a range/slice of elements from a column of texts or lists.
start
, stop
and step
to define a range of indices, the corresponding range of elements is extracted
from each text or list in the input column.
Note: indices start at 0, and a stop
of 3 means elements up to but not including the element at index 3
will be extracted. In particular this means simply specifying "stop": 3
(setting or leaving start
at its
default of 0), will extract 3 elements in total.
Examples
ds.first_name
), datasets (ds
or ds[["first_name", "last_name"]]
) or models (referenced
by name e.g. "churn-clf"
).
Inputs
Outputs
out_type
parameter, and needs to be consistent with the transformation.step(..., {"param": "value", ...}) -> (output)
.
Parameters
stop
index will not be included. As an example, "start": 0, "stop": 3
will include all elements up to but not including the element at index 3, thus extracting a
total of 3 elements.start
to stop
index.
E.g., if "step": 2
, only every second element from the range [start
, stop
] is returned.category
date
number
boolean
url
sex
text
list[number]
list[category]
list[url]
list[boolean]
list[date]