Given:
a = [["a","",""],
["b","",""],
["c","d",""]]
b = [["a", nan, nan],
["b", nan, nan],
["c","d", nan]]
I would like to remove the value which is nan or empty string.
This is my current code:
while("" in a):
a.remove("")
and
b = [x for x in b if str(x) != nan]
but both don't work, what should I do?
nanas innumpy.nanorstr("nan")?ais a list-of-lists.""is not a direct member ofa.