MCPcopy Create free account
hub / github.com/numpy/numpy / swapcase

Method swapcase

numpy/core/defchararray.py:2642–2652  ·  view source on GitHub ↗

For each element in `self`, return a copy of the string with uppercase characters converted to lowercase and vice versa. See Also -------- char.swapcase

(self)

Source from the content-addressed store, hash-verified

2640 return asarray(strip(self, chars))
2641
2642 def swapcase(self):
2643 """
2644 For each element in `self`, return a copy of the string with
2645 uppercase characters converted to lowercase and vice versa.
2646
2647 See Also
2648 --------
2649 char.swapcase
2650
2651 """
2652 return asarray(swapcase(self))
2653
2654 def title(self):
2655 """

Callers 1

test_swapcaseMethod · 0.80

Calls 2

swapcaseFunction · 0.85
asarrayFunction · 0.70

Tested by 1

test_swapcaseMethod · 0.64