(any_string_dtype)
| 670 | |
| 671 | |
| 672 | def test_partition_with_name(any_string_dtype): |
| 673 | # GH 12617 |
| 674 | |
| 675 | s = Series(["a,b", "c,d"], name="xxx", dtype=any_string_dtype) |
| 676 | result = s.str.partition(",") |
| 677 | expected = DataFrame( |
| 678 | {0: ["a", "c"], 1: [",", ","], 2: ["b", "d"]}, dtype=any_string_dtype |
| 679 | ) |
| 680 | tm.assert_frame_equal(result, expected) |
| 681 | |
| 682 | |
| 683 | def test_partition_with_name_expand(any_string_dtype): |