I have applied below is the data frame
cc temp
0 US 37.0
1 CA 12.0
2 US 35.0
3 AU 20.0
Now convert into category using
df = df.cc.cat.codes
I'm getting this as output
cc temp
0 2 37.0
1 1 12.0
2 2 35.0
3 0 20.0
My requirement is that how can I reverse it as origin any idea?