You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"""Column-wise join of the current DataFrame with an ``other`` DataFrame, similar to a SQL ``JOIN``
1693
1695
1694
-
If the two DataFrames have duplicate non-join key column names, "right." will be prepended to the conflicting right columns.
1696
+
If the two DataFrames have duplicate non-join key column names, "right." will be prepended to the conflicting right columns. You can change the behavior by passing either (or both) `prefix` or `suffix` to the function.
1697
+
If `prefix` is passed, it will be prepended to the conflicting right columns. If `suffix` is passed, it will be appended to the conflicting right columns.
1695
1698
1696
1699
.. NOTE::
1697
1700
Although self joins are supported, we currently duplicate the logical plan for the right side
other (DataFrame): the right DataFrame to join on.
1721
1760
on (Optional[Union[List[ColumnInputType], ColumnInputType]], optional): key or keys to join on [use if the keys on the left and right side match.]. Defaults to None.
@@ -1724,6 +1763,8 @@ def join(
1724
1763
how (str, optional): what type of join to perform; currently "inner", "left", "right", "outer", "anti", and "semi" are supported. Defaults to "inner".
1725
1764
strategy (Optional[str]): The join strategy (algorithm) to use; currently "hash", "sort_merge", "broadcast", and None are supported, where None
1726
1765
chooses the join strategy automatically during query optimization. The default is None.
1766
+
suffix (Optional[str], optional): Suffix to add to the column names in case of a name collision. Defaults to "".
1767
+
prefix (Optional[str], optional): Prefix to add to the column names in case of a name collision. Defaults to "right.".
1727
1768
1728
1769
Raises:
1729
1770
ValueError: if `on` is passed in and `left_on` or `right_on` is not None.
0 commit comments