Deleting DataFrame row in Pandas based on column value

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

df = df[df.line_race != 0]

Leave a Comment

error code: 523