spark-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Apache Spark (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (SPARK-19453) Correct DataFrame.replace docs
Date Fri, 03 Feb 2017 19:49:51 GMT

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

Apache Spark commented on SPARK-19453:
--------------------------------------

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

> Correct DataFrame.replace docs
> ------------------------------
>
>                 Key: SPARK-19453
>                 URL: https://issues.apache.org/jira/browse/SPARK-19453
>             Project: Spark
>          Issue Type: Improvement
>          Components: Documentation, PySpark, SQL
>    Affects Versions: 1.5.0, 1.6.0, 2.0.0, 2.1.0, 2.2.0
>            Reporter: Maciej Szymkiewicz
>
> Current docstring provides incorrect description of {{to_replace}} argument: 
> {quote}
>  If the value is a dict, then `value` is ignored and `to_replace` must be a mapping from
column name (string) to replacement value.
> {quote}
> It looks like it has been copied from `na.fill` docs. In fact {{dict}} should provide
mapping from value to replacement value. 
> Moreover docs fail to explain some fundamental limitations (like lack of support for
heterogeneous values) and some usage scenarios.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

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


Mime
View raw message