MCPcopy Index your code
hub / github.com/numpy/numpy / swapcase

Method swapcase

numpy/_core/defchararray.py:1132–1142  ·  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

1130 return strip(self, chars)
1131
1132 def swapcase(self):
1133 """
1134 For each element in `self`, return a copy of the string with
1135 uppercase characters converted to lowercase and vice versa.
1136
1137 See Also
1138 --------
1139 char.swapcase
1140
1141 """
1142 return asarray(swapcase(self))
1143
1144 def title(self):
1145 """

Callers 1

test_swapcaseMethod · 0.80

Calls 2

swapcaseFunction · 0.85
asarrayFunction · 0.70

Tested by 1

test_swapcaseMethod · 0.64