df = df.fillna('')
This will fill na’s (e.g. NaN’s) with ''
.
inplace
is possible but should be avoided as it will be deprecated:
df.fillna('', inplace=True)
To fill only a single column:
df.column1 = df.column1.fillna('')
One can use df['column1']
instead of df.column1
.