Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python replace null in list

>>> d = [1,'q','3', None, 'temp']
>>> ['None' if v is None else v for v in d]
[1, 'q', '3', 'None', 'temp']
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #python #replace #null #list
ADD COMMENT
Topic
Name
4+1 =