-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
DataFrame.merge with Series should give nice error message #12081
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
Labels
Error Reporting
Incorrect or improved errors from pandas
Reshaping
Concat, Merge/Join, Stack/Unstack, Explode
Milestone
Comments
👍 |
can you post a copy-pastable example that shows the error message. |
This gives:
And then there's this as well:
|
thanks!. yes these could use more intuitive warnings. want to do a PR? |
I'd love to give it a shot. |
I've opened #12112 |
Closed
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Error Reporting
Incorrect or improved errors from pandas
Reshaping
Concat, Merge/Join, Stack/Unstack, Explode
Right now trying this results in "IndexError: list index out of range". It should say can't merge DataFrame with a Series...
I know this for quite a while now, but still get trapped on it every once in a while. This would be very helpful for beginners.
Other people also get confused: http://stackoverflow.com/questions/27281734/pandas-merge-on-index-not-working
The text was updated successfully, but these errors were encountered: