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

Function test_swapcase_mixed_object

pandas/tests/strings/test_case_justify.py:92–99  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

90
91
92def test_swapcase_mixed_object():
93 s = Series(["FOO", np.nan, "bar", True, datetime.today(), "Blah", None, 1, 2.0])
94 result = s.str.swapcase()
95 expected = Series(
96 ["foo", np.nan, "BAR", np.nan, np.nan, "bLAH", None, np.nan, np.nan],
97 dtype=object,
98 )
99 tm.assert_series_equal(result, expected)
100
101
102def test_casefold():

Callers

nothing calls this directly

Calls 2

SeriesClass · 0.90
swapcaseMethod · 0.80

Tested by

no test coverage detected