Фильтр колонны панд
filter = df['column']!= 0
df = df[filter]
Hesterian
filter = df['column']!= 0
df = df[filter]
alldata_balance = alldata[(alldata[IBRD] !=0) | (alldata[IMF] !=0)]
#To select rows whose column value is in list
years = [1952, 2007]
gapminder.year.isin(years)