You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Apache Spark (JIRA)" <ji...@apache.org> on 2018/03/02 14:02:00 UTC

[jira] [Commented] (SPARK-23566) Arguement name fix

    [ https://issues.apache.org/jira/browse/SPARK-23566?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16383593#comment-16383593 ] 

Apache Spark commented on SPARK-23566:
--------------------------------------

User 'animenon' has created a pull request for this issue:
https://github.com/apache/spark/pull/20716

> Arguement name fix
> ------------------
>
>                 Key: SPARK-23566
>                 URL: https://issues.apache.org/jira/browse/SPARK-23566
>             Project: Spark
>          Issue Type: Documentation
>          Components: Documentation
>    Affects Versions: 1.6.2, 2.3.0
>            Reporter: Anirudh
>            Priority: Minor
>              Labels: docs, minor, newbie
>   Original Estimate: 1m
>  Remaining Estimate: 1m
>
> Doc String of `withColumnRenamed` has a wrongly marked argument.
>  
> {{    def withColumnRenamed(self, existing, new):}}
> {{        """Returns a new :class:`DataFrame` by renaming an existing column.}}
> {{        This is a no-op if schema doesn't contain the given column name.}}
> {{        :param existing: string, name of the existing column to rename.}}
> {{        :param col: string, new name of the column.}}
> {{        >>> df.withColumnRenamed('age', 'age2').collect()}}
> {{        [Row(age2=2, name=u'Alice'), Row(age2=5, name=u'Bob')]}}
> {{        """}}
> Variable is `new` in argument list and `col` in the doc string.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

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