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