aboutsummaryrefslogtreecommitdiff
path: root/mllib-local
diff options
context:
space:
mode:
authorOscar D. Lara Yejas <odlaraye@oscars-mbp.usca.ibm.com>2016-04-26 15:34:30 -0700
committerShivaram Venkataraman <shivaram@cs.berkeley.edu>2016-04-26 15:34:30 -0700
commit0c99c23b7d9f0c3538cd2b062d551411712a2bcc (patch)
treefc7d7cc02559756f50b3dd4a5f262e5aa822412e /mllib-local
parent75879ac3c07f3b1a708f4392429335feb06f271b (diff)
downloadspark-0c99c23b7d9f0c3538cd2b062d551411712a2bcc.tar.gz
spark-0c99c23b7d9f0c3538cd2b062d551411712a2bcc.tar.bz2
spark-0c99c23b7d9f0c3538cd2b062d551411712a2bcc.zip
[SPARK-13734][SPARKR] 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 Iris dataset irisDF <- createDataFrame(sqlContext, iris) ## Render a histogram for the Sepal_Length column histogram(irisDF, "Sepal_Length", nbins=12) ``` ![histogram](https://cloud.githubusercontent.com/assets/13985649/13588486/e1e751c6-e484-11e5-85db-2fc2115c4bb2.png) 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. Author: Oscar D. Lara Yejas <odlaraye@oscars-mbp.usca.ibm.com> Author: Oscar D. Lara Yejas <odlaraye@oscars-mbp.attlocal.net> Closes #11569 from olarayej/SPARK-13734.
Diffstat (limited to 'mllib-local')
0 files changed, 0 insertions, 0 deletions