pandas column values to string code example
Example 1: pandas change column to a string
total_rows['ColumnID'] = total_rows['ColumnID'].astype(str)
Example 2: change value to string pandas
mtrx['X.3'] = mtrx['X.3'].astype(str)
total_rows['ColumnID'] = total_rows['ColumnID'].astype(str)
mtrx['X.3'] = mtrx['X.3'].astype(str)