pandas drop a row with a specific value in a column code example
Example 1: pandas dataframe remove rows by column value
df = df[df.line_race != 0]
Example 2: pandas dataframe drop rows with -ve in column value
df = df[df.line_race != 0]
df = df[df.line_race != 0]
df = df[df.line_race != 0]