If you have comments or can explain your changes, please do so below.
Implements slice, starts_with and tail methods in the str namespace for Expr and Series.
It is a quite large one, but slice implementation allowed to refactor head and tail, however using slice does not allow for negative indexes as polars does. Since they were not supported anyway in the first place, I moved to this implementation but happy to discuss how to work around it.
What type of PR is this? (check all applicable)
Related issues
None
Checklist
If you have comments or can explain your changes, please do so below.
Implements
slice
,starts_with
andtail
methods in the str namespace for Expr and Series.It is a quite large one, but slice implementation allowed to refactor head and tail, however using slice does not allow for negative indexes as polars does. Since they were not supported anyway in the first place, I moved to this implementation but happy to discuss how to work around it.