@@ -940,6 +940,54 @@ def endswith(
940
940
"""
941
941
raise NotImplementedError (constants .ABSTRACT_METHOD_ERROR_MESSAGE )
942
942
943
+ def split (
944
+ self ,
945
+ pat : str = " " ,
946
+ regex : typing .Union [bool , None ] = None ,
947
+ ):
948
+ """
949
+ Split strings around given separator/delimiter.
950
+
951
+ **Examples:**
952
+
953
+ >>> import bigframes.pandas as bpd
954
+ >>> import numpy as np
955
+ >>> bpd.options.display.progress_bar = None
956
+
957
+ >>> s = bpd.Series(
958
+ ... [
959
+ ... "a regular sentence",
960
+ ... "https://docs.python.org/index.html",
961
+ ... np.nan
962
+ ... ]
963
+ ... )
964
+ >>> s.str.split()
965
+ 0 ['a' 'regular' 'sentence']
966
+ 1 ['https://docs.python.org/index.html']
967
+ 2 []
968
+ dtype: list<item: string>[pyarrow]
969
+
970
+ The pat parameter can be used to split by other characters.
971
+
972
+ >>> s.str.split("//", regex=False)
973
+ 0 ['a regular sentence']
974
+ 1 ['https:' 'docs.python.org/index.html']
975
+ 2 []
976
+ dtype: list<item: string>[pyarrow]
977
+
978
+ Args:
979
+ pat (str, default " "):
980
+ String to split on. If not specified, split on whitespace.
981
+ regex (bool, default None):
982
+ Determines if the passed-in pattern is a regular expression. Regular
983
+ expressions aren't currently supported. Please set `regex=False` when
984
+ `pat` length is not 1.
985
+
986
+ Returns:
987
+ bigframes.series.Series: Type matches caller.
988
+ """
989
+ raise NotImplementedError (constants .ABSTRACT_METHOD_ERROR_MESSAGE )
990
+
943
991
def match (self , pat : str , case : bool = True , flags : int = 0 ):
944
992
"""
945
993
Determine if each string starts with a match of a regular expression.
0 commit comments