| [ Web Proxy ] |
| Viewing: https://dataframes.bigquery.dev/reference/api/bigframes.pandas.api.typing.StringMethods.slice.html | [Back] [Original] |
Section Navigation
Slice substrings from each element in the Series or Index.
Examples:
>>> import bigframes.pandas as bpd
>>> s = bpd.Series(["koala", "dog", "chameleon"])
>>> s
0 koala
1 dog
2 chameleon
dtype: string
>>> s.str.slice(start=1)
0 oala
1 og
2 hameleon
dtype: string
>>> s.str.slice(stop=2)
0 ko
1 do
2 ch
dtype: string
>>> s.str.slice(start=2, stop=5)
0 ala
1 g
2 ame
dtype: string
Copyright 2019, Google.
Created using Sphinx 8.1.3.
Built with the PyData Sphinx Theme 0.19.0.
| Web Proxy Viewer | New URL | Original Page |