[
https://issues.apache.org/jira/browse/SPARK-42903?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17703950#comment-17703950
]
Mike K commented on SPARK-42903:
--------------------------------
User 'xinrong-meng' has created a pull request for this issue:
https://github.com/apache/spark/pull/40532
> Avoid documenting None as as a return value in docstring
> --------------------------------------------------------
>
> Key: SPARK-42903
> URL: https://issues.apache.org/jira/browse/SPARK-42903
> Project: Spark
> Issue Type: Documentation
> Components: PySpark
> Affects Versions: 3.4.0
> Reporter: Hyukjin Kwon
> Assignee: Hyukjin Kwon
> Priority: Trivial
> Fix For: 3.4.0
>
>
> e.g.):
> {code}
> +++ b/python/pyspark/sql/dataframe.py
> @@ -385,10 +385,6 @@ class DataFrame(PandasMapOpsMixin,
> PandasConversionMixin):
> name : str
> Name of the view.
> - Returns
> - -------
> - None
> -
> Examples
> --------
> Create a local temporary view named 'people'.
> @@ -426,10 +422,6 @@ class DataFrame(PandasMapOpsMixin,
> PandasConversionMixin):
> name : str
> Name of the view.
> - Returns
> - -------
> - None
> -
> Examples
> --------
> Create a global temporary view.
> @@ -467,10 +459,6 @@ class DataFrame(PandasMapOpsMixin,
> PandasConversionMixin):
> name : str
> Name of the view.
> - Returns
> - -------
> - None
> {code}
> to be consistent. In Python, it's idiomatic to don't specify the return for
> return None.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]