We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6acd9a1 commit 2fc31e0Copy full SHA for 2fc31e0
bigframes/operations/strings.py
@@ -38,7 +38,7 @@
38
class StringMethods(bigframes.operations.base.SeriesMethods, vendorstr.StringMethods):
39
__doc__ = vendorstr.StringMethods.__doc__
40
41
- def __getitem__(self, key: int | slice) -> series.Series:
+ def __getitem__(self, key: Union[int, slice]) -> series.Series:
42
if isinstance(key, int):
43
if key < 0:
44
raise NotImplementedError("Negative indexing is not supported.")
third_party/bigframes_vendored/pandas/core/strings/accessor.py
@@ -13,7 +13,7 @@ class StringMethods:
13
R's stringr package.
14
"""
15
16
- def __getitem__(self, key: int | slice):
+ def __getitem__(self, key: typing.Union[int, slice]):
17
18
Index or slice string or list in the Series.
19
0 commit comments