Deleting DataFrame row in Pandas based on column value

前端 未结 10 2262
悲哀的现实
悲哀的现实 2020-11-22 04:08

I have the following DataFrame:

             daysago  line_race rating        rw    wrating
 line_date                                                 
 2007         


        
10条回答
  •  臣服心动
    2020-11-22 04:51

    If I'm understanding correctly, it should be as simple as:

    df = df[df.line_race != 0]
    

提交回复
热议问题