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
10 months agoTeri
9 months agoCharolette
9 months agoCecil
9 months agoJosephine
10 months agoYoko
9 months agoLeonida
9 months agoErinn
10 months agoMarget
10 months agoAudrie
10 months agoKirby
9 months agoElvis
9 months agoDaren
9 months agoLizette
10 months agoKristine
10 months agoTequila
10 months agoNana
10 months agoStephanie
10 months agoKyoko
11 months agoMohammad
10 months agoDenae
11 months ago