Pandas, list all the columns that have null values for each row

后端 未结 0 368
悲哀的现实
悲哀的现实 2021-01-24 14:03

I have the following df:

mask = df.apply(lambda row: True if row.isnull().any() else False, axis=1)
df[HAS_MISSING_VALUES]          


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题