Deleting DataFrame row in Pandas based on column value by Tarik If I’m understanding correctly, it should be as simple as: df = df[df.line_race != 0]