Substitua a nan por média
df.fillna(df.mean())
Bewildered Barracuda
df.fillna(df.mean())
sub2['income'].fillna((sub2['income'].mean()), inplace=True)