Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

Return the intersection of this RDD and another one

rdd1 = sc.parallelize([1, 10, 2, 3, 4, 5])
rdd2 = sc.parallelize([1, 6, 2, 3, 7, 8])
rdd1.intersection(rdd2).collect()
# [1, 2, 3]
Comment

PREVIOUS NEXT
Code Example
Python :: Return a new RDD by applying a function to each element of this RDD. 
Python :: Perform a right outer join of self and other. 
Python :: Compute the variance of this RDD’s elements 
Python :: what is mi casa in spanish 
Python :: Returns the cartesian product with another DataFrame 
Python :: python create adictionary randomly assigning clors to categorical vairables 
Python :: Randomly splits this DataFrame with the provided weights 
Python :: ole db 
Python :: python seaborn violin stack overflow 
Python :: django rest framework encrypt passwors 
Python :: drop duplicates pandas considering lowercase 
Python :: how to make turtle shape image smaller 
Python :: how to print anything in python 
Python :: arabert 
Python :: jouer à Snake 
Python :: boolean for duplicate values in a column 
Python :: how to get id of user discord.py 
Python :: how to form a list from a file in python 
Python :: download pyautogui 
Python :: resizing windows with background tkinter 
Python :: if self.quitting: raise BdbQuit in classbased view 
Python :: py urllib download foto 
Python :: python 3.7 release date 
Python :: check cudann 
Python :: python import module with minus in its name 
Python :: python opening file modalities 
Python :: nsetools index list 
Python :: Python String to array using list comprehension 
Python :: what is a good django orm cookbook 
Python :: python top label plot 
ADD CONTENT
Topic
Content
Source link
Name
8+2 =