2
users_grpd = pairs.groupByKey()
users_grpd_flattened = meds_grpd.map(
lambda keyValue: (keyValue[0], ' '.join(map(str, keyValue[1]))))
users_grpd_flattened.saveAsTextFile('pairedrddresults.txt')
(u'3300975212', '120818 120519 120850 120521')
(u'3200272220', '120036 105037')
(u'131', '2024574 12024')
我想知道是否有辦法救這個pairedrdd爲文本文件,其中的龍頭u和報價省略?