pandas convert variable to string code example Example: change value to string pandas mtrx['X.3'] = mtrx['X.3'].astype(str)