can I choose a specific string of a column to become NaN in python? My data frame shows like this:
type size
A 1
B 1
C 1
and I want to convert 'B' become Nan, so the table will be like:
type type
A 1
NaN 1
C 1
thankyou.