MCPcopy
hub / github.com/pandas-dev/pandas / test_swapcase

Function test_swapcase

pandas/tests/strings/test_case_justify.py:85–89  ·  view source on GitHub ↗
(any_string_dtype)

Source from the content-addressed store, hash-verified

83
84
85def test_swapcase(any_string_dtype):
86 s = Series(["FOO", "BAR", np.nan, "Blah", "blurg"], dtype=any_string_dtype)
87 result = s.str.swapcase()
88 expected = Series(["foo", "bar", np.nan, "bLAH", "BLURG"], dtype=any_string_dtype)
89 tm.assert_series_equal(result, expected)
90
91
92def test_swapcase_mixed_object():

Callers

nothing calls this directly

Calls 2

SeriesClass · 0.90
swapcaseMethod · 0.80

Tested by

no test coverage detected