How to replace the blanks in a column of a dataframe with another value?
You should use fillna: df[col].fillna('none')
I have a column in a dataframe that has some blanks (which appear as 'nan'). How do I replace those blanks with the string 'none'?