pandas.core.strings.StringMethods.split

StringMethods.split(pat=None, n=-1)

Split each string (a la re.split) in array by given pattern, propagating NA values

Parameters:

pat : string, default None

String or regular expression to split on. If None, splits on whitespace

n : int, default None (all)

Returns:

split : array

Notes

Both 0 and -1 will be interpreted as return all splits