When processing data you will encounter cases where you need to replace numeric data by categorical variables and vice versa.
This is how to do it using Pandas using the .replace() method.
Numeric to Categorical
Here you are ! You now know how to transform numeric variable into categorical variable.