dfr str-slice
for dataframe
Slices the string from the start position until the selected length.
Signature
> dfr str-slice (start) --length
Parameters
start
: start of slice--length {int}
: optional length
Input/output types:
input | output |
---|---|
any | any |
Examples
Creates slices from the strings
> [abcded abc321 abc123] | dfr into-df | dfr str-slice 1 -l 2
╭───┬────╮
│ # │ 0 │
├───┼────┤
│ 0 │ bc │
│ 1 │ bc │
│ 2 │ bc │
╰───┴────╯
Tips: Dataframe commands were not shipped in the official binaries by default, you have to build it with --features=dataframe
flag