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:

inputoutput
anyany

Examples

Creates slices from the strings

> [abcded abc321 abc123] | dfr into-df | dfr str-slice 1 -l 2
╭───┬────╮
│ # │ 0  │
├───┼────┤
│ 0bc │
│ 1bc │
│ 2bc │
╰───┴────╯

Tips: Dataframe commands were not shipped in the official binaries by default, you have to build it with --features=dataframe flag