Search snippets
Browse Code Answers
FAQ
Usage docs
Log In
Sign Up
Home
Python
Add up the elements in this RDD
rafi ur rashid
Programming language:
Python
2021-05-22 01:56:00
0
Q:
Add up the elements in this RDD
ghoppe
Code:
Python
2021-06-25 11:58:15
# sum() sc.parallelize([1.0, 2.0, 3.0]).sum() # 6.0
0
Tags
element
add
Related
add a row at top in pandas dataframe
python csv add row
add new row to dataframe pandas
add element in set python
how to add list as new row to pandas dataframe
adding one element in dictionary python
dataframe add row
insert row in any position pandas dataframe
insert row at given position in pandas dataframe
Create a new RDD of int containing elements from start to end (exclusive), increased by step every element.
add row in db django
Return a new RDD by applying a function to each element of this RDD.
Applies a function to all elements of this RDD.
python how to add elements to a set
New to Communities?
Join the community