This is probably super simple but I just can not find the answer. I import data using GeoPandas from a shape file. Turn that into pandas DataFrame
. I have a object
The simplest thing to do is just:
sala['N10'].replace('None', 'vcv', inplace=True)
that should work.
If they were true NaN
values then calling fillna
would've worked.
e.g.
sala['N10'].fillna(value='vcv', inplace = True)
also what I suggested in my comment:
sala.loc[sala['N10'].isnull(), 'N10'] = 'vcv'