title: Python - Associate Numerical value to Categorical value
body: <p>I have an excel file with a column like this:</p>
  <p><a href="https://i.stack.imgur.com/EGKY9.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/EGKY9.png" alt="enter image description here" /></a></p>
  <p>Each level is assigned an numerical value where beginner = 1, intermediate = 4, advanced = 10, genius = 20, insane = 50.</p>
  <p>Is there a way to associate the levels numerical value with its categorical value in a pandas data frame without changing it?</p>
  <p>I know that I can just add another column but I was curious if there was such way to do this type of association so the dataframe will display the levels name &quot;Beginner, Intermediate..&quot; but if I want to use the numerical value for data analysis I can call the cell and it will recognise its numerical value.</p>