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