numpy.char.rpartition(a, sep)
Partition (split) each element around the right-most separator.
Calls str.rpartition
element-wise.
For each element in a
, split the element as the last occurrence of sep
, and return 3 strings containing the part before the separator, the separator itself, and the part after the separator. If the separator is not found, return 3 strings containing the string itself, followed by two empty strings.
Parameters: |
|
---|---|
Returns: |
|
See also
© 2005–2019 NumPy Developers
Licensed under the 3-clause BSD License.
https://docs.scipy.org/doc/numpy-1.17.0/reference/generated/numpy.char.rpartition.html