GitHub user olarayej opened a pull request:

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

    Added histogram function

    ## What changes were proposed in this pull request?
    
    Added method histogram() to compute the histogram of a Column
    
    **Usage:** 
    # Create a DataFrame from the Irijjs dataset
    irisDF <- createDataFrame(sqlContext, iris)
    
    # Render a histogram for the Sepal_Length column 
    histogram(irisDF, "Sepal_Length", nbins=12)
    
    Note: Usage will change once SPARK-9325 is figured out so that histogram() 
only takes a Column as a parameter, as opposed to a DataFrame and a name
    
    ## How was this patch tested?
    
    All unit tests pass. I added specific unit cases for different scenarios.

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

    $ git pull https://github.com/olarayej/spark SPARK-13734

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

    https://github.com/apache/spark/pull/11569.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 #11569
    
----
commit efc2f6634b54cd91e4946d4d4e04be769769f4ad
Author: Oscar D. Lara Yejas <[email protected]>
Date:   2016-03-08T00:19:07Z

    Added histogram function

----


---
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 [email protected] or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to