pandas dataframe drop rows based on values code example
Example 1: dataframe drop 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]