Currently I have a dataframe with columns but for this purpose, I'll just list the columns of importance. Basically I have a dataframe like this:
id type
1 1
2 1
3 2
4 2
5 1
But I want to format the integers such that
1 = 'One'
2 = 'Two'
But I don't want to change the int to a string like using pd.replace, but format it instead.