Method: Polars::StringExpr#slice
- Defined in:
- lib/polars/string_expr.rb
#slice(offset, length = nil) ⇒ Expr
Create subslices of the string values of a Utf8 Series.
1283 1284 1285 1286 1287 |
# File 'lib/polars/string_expr.rb', line 1283 def slice(offset, length = nil) offset = Utils.parse_into_expression(offset) length = Utils.parse_into_expression(length) Utils.wrap_expr(_rbexpr.str_slice(offset, length)) end |