Problem Scenario 67 : You have been given below code snippet.
lines = sc.parallelize(['lts fun to have fun,','but you have to know how.'])
M = lines.map( lambda x: x.replace(',7 ').replace('.',' 'J.replaceC-V ').lower())
r2 = r1.flatMap(lambda x: x.split())
r3 = r2.map(lambda x: (x, 1))
operation1
r5 = r4.map(lambda x:(x[1],x[0]))
r6 = r5.sortByKey(ascending=False)
r6.take(20)
Write a correct code snippet for operationl which will produce desired output, shown below. [(2, 'fun'), (2, 'to'), (2, 'have'), (1, its'), (1, 'know1), (1, 'how1), (1, 'you'), (1, 'but')]
Elly
1 years agoTeri
11 months agoCharolette
11 months agoCecil
12 months agoJosephine
1 years agoYoko
11 months agoLeonida
11 months agoErinn
1 years agoMarget
1 years agoAudrie
1 years agoKirby
12 months agoElvis
12 months agoDaren
12 months agoLizette
12 months agoKristine
12 months agoTequila
1 years agoNana
1 years agoStephanie
1 years agoKyoko
1 years agoMohammad
1 years agoDenae
1 years ago