BUG/ERR: wrong error in DataFrame.drop with non-unique datetime index + invalid keys #30399
Labels
Bug
Error Reporting
Incorrect or improved errors from pandas
Indexing
Related to indexing on series/frames, not to indexes themselves
Milestone
Consider this example, where there is a DataFrame with a non-unique DatetimeIndex:
If you then use
drop
to drop some columns, but forget to specifycolumns=
oraxis=1
(so you are actually dropping rows), you get a wrong error and very confusing error message:Tested with pandas 0.25 and pandas master.
The text was updated successfully, but these errors were encountered: