modin.pandas.Series.str.get¶
- Series.str.get(i)[source]¶
Extract element from each component at specified position or with specified key.
Extract element from lists, tuples, dict, or strings in each element in the Series/Index.
Examples
>>> s = pd.Series(["String", ... (1, 2, 3), ... ["a", "b", "c"], ... 123, ... -456, ... {1: "Hello", "2": "World"}]) >>> s.str.get(1) 0 t 1 None 2 None 3 None 4 None 5 None dtype: object
>>> s.str.get(-1) 0 g 1 None 2 None 3 None 4 None 5 None dtype: object