fill string data with NaN in pandas code example Example: dataframe fill nan with mode df['Column_Name'].fillna(df['Column_Name'].mode()[0], inplace=True)