Python Pandas-选择多列为空的行

Ron*_*th 8 python null pandas

我想选择具有多列(以下示例中的 4 列)的行作为空值。我使用了以下代码:

data[(data['relevent_experience'].isnull())&data['education_level'].isnull())&data['major_disciplne'].isnull())&data['relevent_experience'].isnull())]
Run Code Online (Sandbox Code Playgroud)

这是一段非常复杂的代码。有没有更干净的方法来做同样的事情?

归档时间:

查看次数:

24278 次

最近记录:

7 年,10 月 前