Examples
import numpy as np import pandas as pd
s = pd.Series(["tiger", "cat", "elephant"]) s
0 tiger 1 cat 2 elephant dtype: object
s.str.slice(start=1)
0 iger 1 at 2 lephant dtype: object
s.str.slice(stop=2)
0 ti 1 ca 2 el dtype: object
s.str.slice(step=2)
s.str.slice(start=0, stop=5, step=3)
0 te 1 c 2 ep dtype: object
Equivalent behaviour to:
s.str[0:5:3]