GitHub user wangmiao1981 opened a pull request:

    https://github.com/apache/spark/pull/13266

    [SPARK-15492][ML][DOC]:Binarization scala example copy & paste to 
spark-shell error

    ## What changes were proposed in this pull request?
    
    (Please fill in changes proposed in this fix)
    The Binarization scala example val dataFrame : Dataframe = 
spark.createDataFrame(data).toDF("label", "feature"), which can't be pasted in 
the spark-shell as Dataframe is not imported. Compared with other examples, 
this explicit type is not required.
    
    So I removed Dataframe in the code.
    ## How was this patch tested?
    
    (Please explain how this patch was tested. E.g. unit tests, integration 
tests, manual tests)
    Manually tested 
    
    
    


You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/wangmiao1981/spark unit

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/spark/pull/13266.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #13266
    
----
commit df29feb9644e3617eff3f561998f26e0977f23ed
Author: wm...@hotmail.com <wm...@hotmail.com>
Date:   2016-05-23T21:48:15Z

    remove type Dataframe

----


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to