Function
test_duplicate_index
(input_dict, input_index, expected_dict, expected_index)
Source from the content-addressed store, hash-verified
| 198 | ], |
| 199 | ) |
| 200 | def test_duplicate_index(input_dict, input_index, expected_dict, expected_index): |
| 201 | # GH 28005 |
| 202 | df = pd.DataFrame(input_dict, index=input_index, dtype=object) |
| 203 | result = df.explode("col1") |
| 204 | expected = pd.DataFrame(expected_dict, index=expected_index, dtype=object) |
| 205 | tm.assert_frame_equal(result, expected) |
| 206 | |
| 207 | |
| 208 | def test_ignore_index(): |
Callers
nothing calls this directly
Tested by
no test coverage detected