cancel
Showing results for 
Search instead for 
Did you mean: 
Data Engineering
cancel
Showing results for 
Search instead for 
Did you mean: 

pyspark code error

gpzz
New Contributor II

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

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

Pls help me out with this

1 REPLY 1

UmaMahesh1
Honored Contributor III

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

Welcome to Databricks Community: Lets learn, network and celebrate together

Join our fast-growing data practitioner and expert community of 80K+ members, ready to discover, help and collaborate together while making meaningful connections. 

Click here to register and join today! 

Engage in exciting technical discussions, join a group with your peers and meet our Featured Members.