Pandas set string to NaN code example
Example 1: replace nan in pandas
df['DataFrame Column'] = df['DataFrame Column'].fillna(0)
Example 2: pandas dataframe convert nan to string
df.fillna('', inplace=True)
df['DataFrame Column'] = df['DataFrame Column'].fillna(0)
df.fillna('', inplace=True)