Skip to content

Commit 01dd111

Browse files
Xndr7jreback
authored andcommitted
DOC: Fix additional join examples in "10 Minutes to pandas" #13029
- [x] closes #13029 Author: Sanjiv Lobo <[email protected]> Closes #13171 from Xndr7/fix-additional-join-examples-in-"10-Minutes-to-pandas"-#13029 and squashes the following commits: 633c7ff [Sanjiv Lobo] fixed docs for issue #13029
1 parent 82f54bd commit 01dd111

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

doc/source/10min.rst

+11
Original file line numberDiff line numberDiff line change
@@ -483,6 +483,17 @@ SQL style merges. See the :ref:`Database style joining <merging.join>`
483483
right
484484
pd.merge(left, right, on='key')
485485
486+
Another example that can be given is:
487+
488+
.. ipython:: python
489+
490+
left = pd.DataFrame({'key': ['foo', 'bar'], 'lval': [1, 2]})
491+
right = pd.DataFrame({'key': ['foo', 'bar'], 'rval': [4, 5]})
492+
left
493+
right
494+
pd.merge(left, right, on='key')
495+
496+
486497
Append
487498
~~~~~~
488499

0 commit comments

Comments
 (0)