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.

Reply via email to