Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

map reduce and filter functions in python

def func(x):
    if x>=3:
        return x
y = filter(func, (1,2,3,4))  
print(y)
print(list(y))
Source by www.analyticsvidhya.com #
 
PREVIOUS NEXT
Tagged: #map #reduce #filter #functions #python
ADD COMMENT
Topic
Name
2+4 =