@@ -225,13 +225,29 @@ def merge(
225225 sort : bool, default False
226226 Sort the join keys lexicographically in the result DataFrame. If False,
227227 the order of the join keys depends on the join type (how keyword).
228+ diff_option : Literal str
229+ The allowed values are "suffix"、"prefix"、"both",default "suffix".
230+ If the value is "suffix", the duplicated columns will be differentiated
231+ using the suffixes provided by parameter "suffixes".
232+ If the value is "prefix", the duplicated columns will be differentiated
233+ using the prefixes provided by parameter "prefixes".
234+ If the value is "both", the duplicated columns will be differentiated
235+ using both the suffixes provided by parameter "suffixes" and
236+ the prefixes provided by parameter "prefixes".
228237 suffixes : list-like, default is ("_x", "_y")
229238 A length-2 sequence where each element is optionally a string
230239 indicating the suffix to add to overlapping column names in
231240 `left` and `right` respectively. Pass a value of `None` instead
232241 of a string to indicate that the column name from `left` or
233242 `right` should be left as-is, with no suffix. At least one of the
234243 values must not be None.
244+ prefixes : list-like, default is ("a_", "b_")
245+ A length-2 sequence where each element is optionally a string
246+ indicating the prefix to add to overlapping column names in
247+ `left` and `right` respectively. Pass a value of `None` instead
248+ of a string to indicate that the column name from `left` or
249+ `right` should be left as-is, with no prefix. At least one of the
250+ values must not be None.
235251 copy : bool, default False
236252 If False, avoid copy if possible.
237253
0 commit comments