Skip to content

Commit 93a63a5

Browse files
authored
add doc regarding pandas-dev#14736
1 parent 725453d commit 93a63a5

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

doc/source/merging.rst

+5
Original file line numberDiff line numberDiff line change
@@ -548,6 +548,7 @@ standard database join operations between DataFrame objects:
548548
only appears in ``'left'`` DataFrame, ``right_only`` for observations whose
549549
merge key only appears in ``'right'`` DataFrame, and ``both`` if the
550550
observation's merge key is found in both.
551+
551552

552553
.. versionadded:: 0.17.0
553554

@@ -817,6 +818,10 @@ equivalent:
817818
left.join(right, on=key_or_keys)
818819
pd.merge(left, right, left_on=key_or_keys, right_index=True,
819820
how='left', sort=False)
821+
822+
.. warning::
823+
824+
* Joining on index with duplicate keys when joining large dataframes would cause severe memory overflow, sometimes freezes the computer and user has to hard reboot, which can be dangerous for unsaved work. Please make sure no duplicate keys in index before joining.
820825

821826
Obviously you can choose whichever form you find more convenient. For
822827
many-to-one joins (where one of the DataFrame's is already indexed by the join

0 commit comments

Comments
 (0)