maxframe.liteframe.LiteFrame.str.rpartition#

LiteFrame.str.rpartition(sep: str = ' ', expand: bool = True)#

Split the string at the last occurrence of sep.

This method splits the string at the last occurrence of sep, and returns 3 elements containing the part before the separator, the separator itself, and the part after the separator. If the separator is not found, return 3 elements containing two empty strings, followed by the string itself.

Parameters:
  • sep (str, default " ") – String to split on.

  • expand (bool, default True) – If True, return DataFrame/MultiIndex expanding dimensionality. If False, return Series/Index.

Returns:

Returns appropriate type based on expand parameter with strings split based on the sep parameter.

Return type:

DataFrame/MultiIndex or Series/Index of objects

See also

partition

Split the string at the first occurrence of sep.

LiteFrame.str.split

Split strings around given separators.

str.partition

Standard library version.