(pat, expected_names, any_string_dtype)
| 489 | ], |
| 490 | ) |
| 491 | def test_extractall_column_names(pat, expected_names, any_string_dtype): |
| 492 | s = Series(["", "A1", "32"], dtype=any_string_dtype) |
| 493 | |
| 494 | result = s.str.extractall(pat) |
| 495 | expected = DataFrame( |
| 496 | [("A", "1"), (np.nan, "3"), (np.nan, "2")], |
| 497 | index=MultiIndex.from_tuples([(1, 0), (2, 0), (2, 1)], names=(None, "match")), |
| 498 | columns=expected_names, |
| 499 | dtype=any_string_dtype, |
| 500 | ) |
| 501 | tm.assert_frame_equal(result, expected) |
| 502 | |
| 503 | |
| 504 | def test_extractall_single_group(any_string_dtype): |
nothing calls this directly
no test coverage detected