You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Sean Owen (JIRA)" <ji...@apache.org> on 2015/09/07 21:16:45 UTC

[jira] [Updated] (SPARK-10380) Confusing examples in pyspark SQL docs

     [ https://issues.apache.org/jira/browse/SPARK-10380?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Sean Owen updated SPARK-10380:
------------------------------
    Target Version/s:   (was: 1.5.0)
            Priority: Minor  (was: Major)
         Component/s: Documentation
          Issue Type: Improvement  (was: Bug)

[~GayathriMurali] I think you're free to open a PR.

> Confusing examples in pyspark SQL docs
> --------------------------------------
>
>                 Key: SPARK-10380
>                 URL: https://issues.apache.org/jira/browse/SPARK-10380
>             Project: Spark
>          Issue Type: Improvement
>          Components: Documentation, SQL
>            Reporter: Michael Armbrust
>            Priority: Minor
>              Labels: docs, starter
>
> There’s an error in the astype() documentation, as it uses cast instead of astype. It should probably include a mention that astype is an alias for cast (and vice versa in the cast documentation): https://spark.apache.org/docs/latest/api/python/pyspark.sql.html#pyspark.sql.Column.astype 
> The same error occurs with drop_duplicates and dropDuplicates: https://spark.apache.org/docs/latest/api/python/pyspark.sql.html#pyspark.sql.DataFrame.drop_duplicates 
> The issue here is we are copying the code.  According to [~davies] the easiest way is to copy the method and just add new docs.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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