(any_string_dtype)
| 83 | |
| 84 | |
| 85 | def 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 | |
| 92 | def test_swapcase_mixed_object(): |