-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
Incorrect identically-labeled DataFrame objects Exception comes with df.compare method #50083
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Thanks for the report; labels can refer to either column labels or row labels. |
Agreed, the exception is not misleading but could be clearer in the sense that it includes index/columns or both |
@rhshadrach Thanks for the confirmation but it would be great if it gives clear idea about the error instead a generic one. Like @phofl said it should include something specific to either column or row labels. |
OK, so how about changing
to
? This'd need changing in a few places, as well as in tests. But agree that it'd be nice to clarify |
take |
When we have exact same columns in source and target dataframes and distinct number of rows then we are seeing below exception which according to me is misleading.
"ValueError: Can only compare identically-labeled DataFrame objects"
#CODE :
The text was updated successfully, but these errors were encountered: