You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spark.apache.org by sr...@apache.org on 2021/02/06 15:09:19 UTC

[spark] branch master updated: [PYTHON][MINOR] Fix docstring of DataFrame.join

This is an automated email from the ASF dual-hosted git repository.

srowen pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/spark.git


The following commit(s) were added to refs/heads/master by this push:
     new 747ad18  [PYTHON][MINOR] Fix docstring of DataFrame.join
747ad18 is described below

commit 747ad1809b4026aae4a7bedec2cac485bddcd5f2
Author: Xinrong Meng <xi...@databricks.com>
AuthorDate: Sat Feb 6 09:08:49 2021 -0600

    [PYTHON][MINOR] Fix docstring of DataFrame.join
    
    ### What changes were proposed in this pull request?
    Fix docstring of PySpark `DataFrame.join`.
    
    ### Why are the changes needed?
    For a better view of PySpark documentation.
    
    ### Does this PR introduce _any_ user-facing change?
    No (only documentation changes).
    
    ### How was this patch tested?
    Manual test.
    
    From
    ![image](https://user-images.githubusercontent.com/47337188/106977730-c14ab080-670f-11eb-8df8-5aea90902104.png)
    
    To
    ![image](https://user-images.githubusercontent.com/47337188/106977834-ed663180-670f-11eb-9c5e-d09be26e0ca8.png)
    
    Closes #31463 from xinrong-databricks/fixDoc.
    
    Authored-by: Xinrong Meng <xi...@databricks.com>
    Signed-off-by: Sean Owen <sr...@gmail.com>
---
 python/pyspark/sql/dataframe.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/python/pyspark/sql/dataframe.py b/python/pyspark/sql/dataframe.py
index e09e87c6..4d606c6 100644
--- a/python/pyspark/sql/dataframe.py
+++ b/python/pyspark/sql/dataframe.py
@@ -1299,6 +1299,7 @@ class DataFrame(PandasMapOpsMixin, PandasConversionMixin):
         Examples
         --------
         The following performs a full outer join between ``df1`` and ``df2``.
+
         >>> from pyspark.sql.functions import desc
         >>> df.join(df2, df.name == df2.name, 'outer').select(df.name, df2.height) \
                 .sort(desc("name")).collect()


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@spark.apache.org
For additional commands, e-mail: commits-help@spark.apache.org