[Solved] Removing Characters from python Output

[ad_1]

I think your only problem is that you have to reformat you result before saving it to the file, i.e. something like:

result.map(lambda x:x[0]+','+str(x[1])).saveAsTextFile("hdfs://localhost:9000/Test1")

6

[ad_2]

solved Removing Characters from python Output