I have a data frame with many columns, say:
df: name salary age title John 100 35 eng Bill 200 NaN adm Lena NaN 28 NaN Jane
According to Pandas documentation in 23.3
values = {'salary': -1, 'age': -1} df = df.fillna(value=values)