convert column value to string pandas code example
Example 1: pandas to convert null values to mean in numeric column
df.fillna(df.mean(), inplace=True)
Example 2: change value to string pandas
mtrx['X.3'] = mtrx['X.3'].astype(str)
df.fillna(df.mean(), inplace=True)
mtrx['X.3'] = mtrx['X.3'].astype(str)