Skip to content

Commit

Permalink
chore: change join param
Browse files Browse the repository at this point in the history
  • Loading branch information
ion-elgreco committed Nov 1, 2024
1 parent 37d1f73 commit 3396ba5
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions docs/source/user-guide/common-operations/joins.rst
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ will be included in the resulting DataFrame.

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

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

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

.. ipython:: python
left.join(right, join_keys=(["customer_id"], ["id"]), how="semi")
left.join(right, left_on="customer_id", right_on="id", how="semi")
Left Anti Join
--------------
Expand All @@ -101,4 +101,4 @@ the right table.

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

0 comments on commit 3396ba5

Please sign in to comment.