DOC/ERR: better error message on no common merge keys #19391
Labels
Docs
Error Reporting
Incorrect or improved errors from pandas
good first issue
Reshaping
Concat, Merge/Join, Stack/Unstack, Explode
Milestone
Currently, merging two DataFrames on indices is not a default option. When the keyword argument
on
is not specified,MergeError
is occurred.Code Sample and Problem Statement
For a successful merge, we need to specify rather verbose keyword arguments
left_index=True, right_index=True
.Expected Output
What if we could do
A briefer syntax for merge on index could facilitate the usability.
Output of
pd.show_versions()
The text was updated successfully, but these errors were encountered: