Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

map reduce and filter functions in python

def function(a):
    return a*a
x = map(function, (1,2,3,4))  #x is the map object
print(x)
print(set(x))
Source by www.analyticsvidhya.com #
 
PREVIOUS NEXT
Tagged: #map #reduce #filter #functions #python
ADD COMMENT
Topic
Name
6+6 =