(any_string_dtype)
| 659 | |
| 660 | |
| 661 | def test_encode_decode(any_string_dtype): |
| 662 | ser = Series(["a", "b", "a\xe4"], dtype=any_string_dtype).str.encode("utf-8") |
| 663 | result = ser.str.decode("utf-8") |
| 664 | expected = Series(["a", "b", "a\xe4"], dtype="str") |
| 665 | tm.assert_series_equal(result, expected) |
| 666 | |
| 667 | |
| 668 | def test_encode_errors_kwarg(any_string_dtype): |