Inconsistencies in index comparisons #12346
Labels
Error Reporting
Incorrect or improved errors from pandas
Indexing
Related to indexing on series/frames, not to indexes themselves
Usage Question
Comparing indexes returns two different data types. This is problematic since one of the types is a bool while the other is a Series which explicitly can't be treated in a bool context. Not to mention that the next section says
==
returns a Series object.I'd suggest that comparing indexes with different lengths raise a
ValueError
likeSeries
do. Possibly keeping the 1 element vs many as a special caseThe text was updated successfully, but these errors were encountered: