BUG: IndexError occuring on duplicate axis does not fail gracefully. #39337
Labels
Bug
Error Reporting
Incorrect or improved errors from pandas
Indexing
Related to indexing on series/frames, not to indexes themselves
I have checked that this issue has not already been reported.
I have confirmed this bug exists on the latest version of pandas.
(optional) I have confirmed this bug exists on the master branch of pandas.
Note: Please read this guide detailing how to provide the necessary information for us to reproduce your bug.
Code Sample, a copy-pastable example
Problem description
Assigning in my case causes very slow climbing in memory and if the dataframe is large enough, OOM killing.
The dataframe is similar is width to the example here, the equivalent multi-index is unique.
Raising this stops using hunting for memory leaks or bugs etc.
Expected Output
The error is raised quickly without requiring disproportionate memory.
Output of
pd.show_versions()
The text was updated successfully, but these errors were encountered: