pandas.Series.str.swapcase

Series.str.swapcase()

Convert strings in the Series/Index to be swapcased. Equivalent to str.swapcase().

Returns:converted : Series/Index of objects