u'14.0' means a unicode string, you can convert into str by u'14.0'.encode('utf8'), or you can convert it into float by float(u'14.0')
Davies On Thu, Aug 28, 2014 at 11:22 PM, Oleg Ruchovets <oruchov...@gmail.com> wrote: > Hi , > I am working with pyspark and doing simple aggregation > > > def doSplit(x): > y = x.split(',') > if(len(y)==3): > return y[0],(y[1],y[2]) > > counts = lines.map(doSplit).groupByKey() > output = counts.collect() > > Iterating over output I got such format of the data u'1385501280' , u'14.0' > , but actually I need to work with 14 instead of u'14.0' and 1385501280 > u'1385501280' > > Question: > how to get actually data without u'' notation? > > > Thanks > Oleg. > --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscr...@spark.apache.org For additional commands, e-mail: user-h...@spark.apache.org