Pandas series filter columns code example
Example 1: pandas column filter
filter = df['column']!= 0
df = df[filter]
Example 2: how to filter a series in pandas
s = pd.Series(test)
s = s[s != 1]
filter = df['column']!= 0
df = df[filter]
s = pd.Series(test)
s = s[s != 1]