In expr.str.slice()
indicate whether an index of 0 or 1 means "start at the start of the string"
#16413
Labels
documentation
Improvements or additions to documentation
Description
I always have trouble figuring out how to use slice as I mentally switch between Rust, Python, Ruby, C, and others, each with their own indexing systems.
Perhaps adding a column example which slices
.str.slice(1, 3)
to the example with "payaya" would be helpful.Idea: name the columns literally
".str.slice(1, 3)"
,".str.slice(4, 3)"
for clarity.Link
https://docs.pola.rs/py-polars/html/reference/expressions/api/polars.Expr.str.slice.html#polars.Expr.str.slice
The text was updated successfully, but these errors were encountered: