how to filter column using pandas dataframe code example Example: pandas column filter filter = df['column']!= 0 df = df[filter]