PD JIKA Nilai Hapus baris
df.drop(df.loc[df['line_race']==0].index, inplace=True)
Lazy Lark
df.drop(df.loc[df['line_race']==0].index, inplace=True)
def filter_rows_by_values(df, col, values):
return df[~df[col].isin(values)]
df = df[df.line_race != 0]