MCPcopy
hub / github.com/pandas-dev/pandas / test_duplicate_index

Function test_duplicate_index

pandas/tests/frame/methods/test_explode.py:200–205  ·  view source on GitHub ↗
(input_dict, input_index, expected_dict, expected_index)

Source from the content-addressed store, hash-verified

198 ],
199)
200def 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
208def test_ignore_index():

Callers

nothing calls this directly

Calls 1

explodeMethod · 0.95

Tested by

no test coverage detected