Skip to content

Commit 5f74d8a

Browse files
authored
DOC: updating the indicator wording in merge doc (#34485)
1 parent 3fee117 commit 5f74d8a

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

pandas/core/frame.py

+7-8
Original file line numberDiff line numberDiff line change
@@ -233,14 +233,13 @@
233233
copy : bool, default True
234234
If False, avoid copy if possible.
235235
indicator : bool or str, default False
236-
If True, adds a column to output DataFrame called "_merge" with
237-
information on the source of each row.
238-
If string, column with information on source of each row will be added to
239-
output DataFrame, and column will be named value of string.
240-
Information column is Categorical-type and takes on a value of "left_only"
241-
for observations whose merge key only appears in 'left' DataFrame,
242-
"right_only" for observations whose merge key only appears in 'right'
243-
DataFrame, and "both" if the observation's merge key is found in both.
236+
If True, adds a column to the output DataFrame called "_merge" with
237+
information on the source of each row. The column can be given a different
238+
name by providing a string argument. The column will have a Categorical
239+
type with the value of "left_only" for observations whose merge key only
240+
appears in the left DataFrame, "right_only" for observations
241+
whose merge key only appears in the right DataFrame, and "both"
242+
if the observation's merge key is found in both DataFrames.
244243
245244
validate : str, optional
246245
If specified, checks if merge is of specified type.

0 commit comments

Comments
 (0)