Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

convert negative to zero in list in python

[max(num, 0) for num in num_list]
 
PREVIOUS NEXT
Tagged: #convert #negative #list #python
ADD COMMENT
Topic
Name
4+9 =