title: How would I change the values (type is string) of a series to an int?
body: <p>So basically I have this dataframe and in this dataframe there is the series 'shape' with the unique values ['cylinder', 'circle', 'light', 'cigar', 'diamond', 'oval', ...] and I want to turn these shapes into numbers so I can use those to make a scatterplot for example.</p>
  
  <p>Is there a way to make another series when each unique shape has its own 'id' as an int?</p>
  
  <p>Edit: Managed to get it working with pandas factorize</p>
  
  <p><img src="https://puu.sh/D8ydo/d6698a8736.png" alt="code" title="tooltip"></p>