我有带有列表的 df 列。每个看起来都像[1,2,3,4,'',6,7],[2,3,'',5,6]。我想删除''每一行中的。我用了
df[column].apply(lambda x: x.remove(''))
Run Code Online (Sandbox Code Playgroud)
但这没有用。有人可以帮助我吗?谢谢
ValueError: list.remove(x): x not in list
Run Code Online (Sandbox Code Playgroud)