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:40 UTC

[spark] branch branch-3.1 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 branch-3.1
in repository https://gitbox.apache.org/repos/asf/spark.git


The following commit(s) were added to refs/heads/branch-3.1 by this push:
     new 64444a9  [PYTHON][MINOR] Fix docstring of DataFrame.join
64444a9 is described below

commit 64444a9a773ebffa74e3dd9bde3feec176e0af6e
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>
    (cherry picked from commit 747ad1809b4026aae4a7bedec2cac485bddcd5f2)
    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 fe7d26d..6313474 100644
--- a/python/pyspark/sql/dataframe.py
+++ b/python/pyspark/sql/dataframe.py
@@ -1297,6 +1297,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