Skip to content

Commit 776ce2f

Browse files
jseaboldwesm
authored andcommitted
DOC: Specify default merge behavior for on = None
1 parent dda3de2 commit 776ce2f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

pandas/core/frame.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,9 @@
119119
* outer: use union of keys from both frames (SQL: full outer join)
120120
* inner: use intersection of keys from both frames (SQL: inner join)
121121
on : label or list
122-
Field names to join on. Must be found in both DataFrames.
122+
Field names to join on. Must be found in both DataFrames. If on is
123+
None and not merging on indexes, then it merges on the intersection of
124+
the columns by default.
123125
left_on : label or list, or array-like
124126
Field names to join on in left DataFrame. Can be a vector or list of
125127
vectors of the length of the DataFrame to use a particular vector as

0 commit comments

Comments
 (0)