Skip to content

Commit 3396ba5

Browse files
committed
chore: change join param
1 parent 37d1f73 commit 3396ba5

File tree

1 file changed

+5
-5
lines changed
  • docs/source/user-guide/common-operations

1 file changed

+5
-5
lines changed

docs/source/user-guide/common-operations/joins.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ will be included in the resulting DataFrame.
5656

5757
.. ipython:: python
5858
59-
left.join(right, join_keys=(["customer_id"], ["id"]), how="inner")
59+
left.join(right, left_on="customer_id", right_on="id", how="inner")
6060
6161
The parameter ``join_keys`` specifies the columns from the left DataFrame and right DataFrame that contains the values
6262
that should match.
@@ -70,7 +70,7 @@ values for the corresponding columns.
7070

7171
.. ipython:: python
7272
73-
left.join(right, join_keys=(["customer_id"], ["id"]), how="left")
73+
left.join(right, left_on="customer_id", right_on="id", how="left")
7474
7575
Full Join
7676
---------
@@ -80,7 +80,7 @@ is no match. Unmatched rows will have null values.
8080

8181
.. ipython:: python
8282
83-
left.join(right, join_keys=(["customer_id"], ["id"]), how="full")
83+
left.join(right, left_on="customer_id", right_on="id", how="full")
8484
8585
Left Semi Join
8686
--------------
@@ -90,7 +90,7 @@ omitting duplicates with multiple matches in the right table.
9090

9191
.. ipython:: python
9292
93-
left.join(right, join_keys=(["customer_id"], ["id"]), how="semi")
93+
left.join(right, left_on="customer_id", right_on="id", how="semi")
9494
9595
Left Anti Join
9696
--------------
@@ -101,4 +101,4 @@ the right table.
101101

102102
.. ipython:: python
103103
104-
left.join(right, join_keys=(["customer_id"], ["id"]), how="anti")
104+
left.join(right, left_on="customer_id", right_on="id", how="anti")

0 commit comments

Comments
 (0)