Код: Выделить всё
df1 = pd.DataFrame({'depth': [-1, 2, 3, 4, np.nan], 'temp': [-1,2,3,4,5]})
df2 = pd.DataFrame({'depth': [1, 2, 3, 4, 5], 'temp': [-1,2,3,4,5]})
df3 = pd.DataFrame({'depth': [1, 2, 3, 4, 5], 'temp': [-1,2,3,4,np.nan]})
df_names=(df1, df2, df3)
for i in df_names:
i = i.dropna()
i = i[i['temp']>0]
i = i[i['depth']>0]
print(df1, '\n', df2,'\n', df3)

Подробнее здесь: https://stackoverflow.com/questions/790 ... dataframes