how to filter column name in pandas code example
Example 1: pandas column filter
filter = df['column']!= 0
df = df[filter]
Example 2: pandas filter
#To select rows whose column value is in list
years = [1952, 2007]
gapminder.year.isin(years)
filter = df['column']!= 0
df = df[filter]
#To select rows whose column value is in list
years = [1952, 2007]
gapminder.year.isin(years)