row = ['', 'a', ' ', ' ', ' ', '-', '--', '---', '<Null>', '<NULL>', 'Null', 'NULL', '”Null”', '”NULL”']
nullList = ['', ' ', ' ', ' ', '-', '--', '---', '<Null>', '<NULL>', 'Null', 'NULL', '”Null”', '”NULL”']
[None if i in nullList else pass for i in row]
File "<ipython-input-7-9b1bf3f7cd3e>", line 1
[None if i in nullList else pass for i in row]
^
SyntaxError: invalid syntax
# -- no pass
[None if i in nullList else i for i in row]
[None,
'a',
None,
None,
None,
None,
None,
None,
None,
None,
None,
None,
None,
None]
... sort of retired...