Answers for "python replace null in list"

0

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']
Posted by: Guest on October-06-2021

Code answers related to "python replace null in list"

Python Answers by Framework

Browse Popular Code Answers by Language