|
368 | 368 | sort : bool, default False |
369 | 369 | Sort the join keys lexicographically in the result DataFrame. If False, |
370 | 370 | 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". |
371 | 380 | suffixes : list-like, default is ("_x", "_y") |
372 | 381 | A length-2 sequence where each element is optionally a string |
373 | 382 | indicating the suffix to add to overlapping column names in |
374 | 383 | `left` and `right` respectively. Pass a value of `None` instead |
375 | 384 | of a string to indicate that the column name from `left` or |
376 | 385 | `right` should be left as-is, with no suffix. At least one of the |
377 | 386 | 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. |
378 | 394 | copy : bool, default False |
379 | 395 | If False, avoid copy if possible. |
380 | 396 |
|
|
0 commit comments