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.
Is there a way to make another series when each unique shape has its own 'id' as an int?
Edit: Managed to get it working with pandas factorize