Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

Return a new RDD containing the distinct elements in this RDD.

sorted(sc.parallelize([1, 1, 2, 3]).distinct().collect())
# [1, 2, 3]
Comment

PREVIOUS NEXT
Code Example
Python :: Return an RDD of grouped items. 
Python :: Perform a left outer join of self and other. 
Python :: new column in pandas with where logic 
Python :: how to let the user input desmials in python 
Python :: geopy set proxy 
Python :: pydrive list shared folder 
Python :: Applies the f function to all Row 
Python :: pygame for loop for draw shape 
Python :: groupby fillna ffill 
Python :: see you tomorrow in italian 
Python :: count number of repeats in list python 
Python :: restore tf model python ValueError: Unknown loss function:smoothL1 
Python :: r value on poly fit python 
Python :: convert c++ code to python online 
Python :: dont squeeze plot when creating colorbar matplotlib 
Python :: get derivative of interp1d 
Python :: tess real name from suits 
Python :: collecting candies codevita solution in python 
Python :: introduction to sets python3 
Python :: cieling function pandas 
Python :: cairo.context transform vertical text python 
Python :: sklearn random forest feature importance 
Python :: turn off subplot 
Python :: http online json 
Python :: how to find pandoc template folder 
Python :: relative import package/module __init__.py 
Python :: eeetimetable 
Python :: tessa thompson 
Python :: python dataframe copy structure 
Python :: how to calculate the age from date of birth in python 
ADD CONTENT
Topic
Content
Source link
Name
5+2 =