I have dataframe with values Na
, blank
and others. I want to replace Na
with noted
(string
value)
I want to transform from here to here without changing blank cell.
I already tried
df['A']=df['A'].replace(regex=['NaN'], value='needed')
and
df['A'].replace(regex=['NA'], value='noted