79835383

Date: 2025-12-02 00:36:20
Score: 0.5
Natty:
Report link

First, flatten the nested RDD and then join with the second RDD. I also merged the duplicates; however, you can skip that step if needed.

joined = (
    rdd1
        .flatMap(lambda group: group)
        .reduceByKey(lambda a, b: a + b)
        .join(rdd2)
)
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: AtilaSol