Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
DataFrame.merge with Series should give nice error message #12081
Comments
|
|
|
can you post a copy-pastable example that shows the error message. |
jreback
added Reshaping Error Reporting
labels
Jan 19, 2016
jreback
added this to the
Next Major Release
milestone
Jan 19, 2016
halflings
commented
Jan 20, 2016
This gives:
And then there's this as well:
|
|
thanks!. yes these could use more intuitive warnings. want to do a PR? |
jreback
added Difficulty Novice Effort Low
labels
Jan 20, 2016
dan-tee
commented
Jan 21, 2016
|
I'd love to give it a shot. |
dan-tee
commented
Jan 21, 2016
|
I've opened #12112 |
dan-tee
referenced
this issue
Jan 22, 2016
Closed
ENH: add error message for merge with Series GH12081 #12112
jreback
modified the milestone: 0.18.0, Next Major Release
Jan 22, 2016
jreback
closed this
in 5641665
Jan 26, 2016
jreback
referenced
this issue
Apr 5, 2016
Closed
pd.DataFrame.astype should allow dict as argument #12801
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
dan-tee commentedJan 18, 2016
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