Return The Union Of This Rdd And Another One

[Solved] Return The Union Of This Rdd And Another One | Abap - Code Explorer | yomemimo.com
Question : Return the union of this RDD and another one

Answered by : abdoulaye

# union(other)
rdd = sc.parallelize([1, 1, 2, 3])
rdd.union(rdd).collect()
# [1, 1, 2, 3, 1, 1, 2, 3]

Source : http://spark.apache.org/docs/2.1.0/api/python/pyspark.html#pyspark.RDD.union | Last Update : Thu, 19 Mar 20

Answers related to return the union of this rdd and another one

Code Explorer Popular Question For Abap