pyspark code error

gpzz
New Contributor III

rdd4 = rdd3.reducByKey(lambda x,y: x+y)

AttributeError: 'PipelinedRDD' object has no attribute 'reducByKey'

Pls help me out with this

UmaMahesh1
Honored Contributor III

Is it a typo or are you really using reducByKey instead of reduceByKey ? 😅

Uma Mahesh D