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