Skip to content

Commit 70a3826

Browse files
correct
1 parent 91e015c commit 70a3826

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

pandas/core/frame.py

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -368,13 +368,29 @@
368368
sort : bool, default False
369369
Sort the join keys lexicographically in the result DataFrame. If False,
370370
the order of the join keys depends on the join type (how keyword).
371+
diff_option : Literal str
372+
The allowed values are "suffix"、"prefix"、"both",default "suffix".
373+
If the value is "suffix", the duplicated columns will be differentiated
374+
using the suffixes provided by parameter "suffixes".
375+
If the value is "prefix", the duplicated columns will be differentiated
376+
using the prefixes provided by parameter "prefixes".
377+
If the value is "both", the duplicated columns will be differentiated
378+
using both the suffixes provided by parameter "suffixes" and
379+
the prefixes provided by parameter "prefixes".
371380
suffixes : list-like, default is ("_x", "_y")
372381
A length-2 sequence where each element is optionally a string
373382
indicating the suffix to add to overlapping column names in
374383
`left` and `right` respectively. Pass a value of `None` instead
375384
of a string to indicate that the column name from `left` or
376385
`right` should be left as-is, with no suffix. At least one of the
377386
values must not be None.
387+
prefixes : list-like, default is ("a_", "b_")
388+
A length-2 sequence where each element is optionally a string
389+
indicating the prefix to add to overlapping column names in
390+
`left` and `right` respectively. Pass a value of `None` instead
391+
of a string to indicate that the column name from `left` or
392+
`right` should be left as-is, with no prefix. At least one of the
393+
values must not be None.
378394
copy : bool, default False
379395
If False, avoid copy if possible.
380396

0 commit comments

Comments
 (0)