Drop rows with all zeros in pandas data frame

前端 未结 13 952
礼貌的吻别
礼貌的吻别 2020-11-27 11:57

I can use pandas dropna() functionality to remove rows with some or all columns set as NA\'s. Is there an equivalent function for drop

相关标签:
13条回答
  • 2020-11-27 12:50

    this works for me new_df = df[df.loc[:]!=0].dropna()

    0 讨论(0)
提交回复
热议问题