MCPcopy Create free account
hub / github.com/ColdGrub1384/Pyto / swapcase

Method swapcase

site-packages/numpy/core/defchararray.py:2546–2556  ·  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

2544 return asarray(strip(self, chars))
2545
2546 def swapcase(self):
2547 """
2548 For each element in `self`, return a copy of the string with
2549 uppercase characters converted to lowercase and vice versa.
2550
2551 See also
2552 --------
2553 char.swapcase
2554
2555 """
2556 return asarray(swapcase(self))
2557
2558 def title(self):
2559 """

Callers 7

StringMethodsClass · 0.80
test_swapcaseMethod · 0.80
test_casemethodsMethod · 0.80
test_replace_callableMethod · 0.80
test_replace_literalMethod · 0.80

Calls 2

swapcaseFunction · 0.85
asarrayFunction · 0.70

Tested by 6

test_swapcaseMethod · 0.64
test_casemethodsMethod · 0.64
test_replace_callableMethod · 0.64
test_replace_literalMethod · 0.64