Skip to content

Commit

Permalink
Update docstring of DataFrame.merge (#9572)
Browse files Browse the repository at this point in the history
Resolves: #9460 

This PR adds descriptions for already supported merge options.

Authors:
  - GALI PREM SAGAR (https://github.com/galipremsagar)

Approvers:
  - H. Thomson Comer (https://github.com/thomcom)
  - Vyas Ramasubramani (https://github.com/vyasr)

URL: #9572
  • Loading branch information
galipremsagar committed Nov 1, 2021
1 parent d073ecb commit e632f97
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions python/cudf/cudf/core/dataframe.py
Expand Up @@ -3748,16 +3748,23 @@ def merge(
If on is None and not merging on indexes then
this defaults to the intersection of the columns
in both DataFrames.
how : {‘left’, ‘outer’, ‘inner’}, default ‘inner’
how : {‘left’, ‘outer’, ‘inner’, 'leftsemi', 'leftanti'}, \
default ‘inner’
Type of merge to be performed.
- left : use only keys from left frame, similar to a SQL left
outer join.
- right : not supported.
- outer : use union of keys from both frames, similar to a SQL
full outer join.
- inner: use intersection of keys from both frames, similar to
- inner : use intersection of keys from both frames, similar to
a SQL inner join.
- leftsemi : similar to ``inner`` join, but only returns columns
from the left dataframe and ignores all columns from the
right dataframe.
- leftanti : returns only rows columns from the left dataframe
for non-matched records. This is exact opposite to ``leftsemi``
join.
left_on : label or list, or array-like
Column or index level names to join on in the left DataFrame.
Can also be an array or list of arrays of the length of the
Expand Down

0 comments on commit e632f97

Please sign in to comment.