Re: Spark Avarage

2015-04-06 Thread baris akgun
athers GROUP BY dayToMonth(dayOfDate))") > results.collect.foreach(println) > > > -Original Message- > From: barisak [mailto:baris.akg...@gmail.com] > Sent: Monday, April 6, 2015 10:50 PM > To: user@spark.apache.org > Subject: Spark Avarage > > Hi > >

RE: Spark Avarage

2015-04-06 Thread Cheng, Hao
l.com] Sent: Monday, April 6, 2015 10:50 PM To: user@spark.apache.org Subject: Spark Avarage Hi I have a class in above desc. case class weatherCond(dayOfdate: String, minDeg: Int, maxDeg: Int, meanDeg: Int) I am reading the data from csv file and I put this data into weatherCond class

Re: Spark Avarage

2015-04-06 Thread Yana Kadiyska
ample > > day, min, max , mean > 2014-03-17,-3,5,5 > 2014-03-18,6,7,7 > 2014-03-19,6,14,10 > > result has to be (2014-03, 3, 8.6 ,7.3) -- (Average for 2014 - 03 > ) > > Thanks > > > > > > --

Spark Avarage

2015-04-06 Thread barisak
; The data set example day, min, max , mean 2014-03-17,-3,5,5 2014-03-18,6,7,7 2014-03-19,6,14,10 result has to be (2014-03, 3, 8.6 ,7.3) -- (Average for 2014 - 03 ) Thanks -- View this message in context: http://apache-spark-user-list.1001560.n3.nabble.com/Spark-Avarage-tp22391.h