slice
Extract a range/slice of elements from a column of texts or lists.
Using 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.
Was this page helpful?