Is there a quicker way via lambda or otherwise to recode the every unique value in a pandas df?
I am trying to recode this without a dictionary or for loop:
   df['Genres'].unique()
array(['Art & Design', 'Art & Design;Pretend Play',
       'Art & Design;Creativity', 'Art & Design;Action & Adventure', 13,
       'Auto & Vehicles', 'Beauty', 'Books & Reference', 'Business',
       'Comics', 'Comics;Creativity', 'Communication', 'Dating',
       'Education', 'Education;Creativity', 'Education;Education',
       'Education;Action & Adventure', 'Education;Pretend Play',...
It goes on for a while - a lot of unique values!
I would like to recode to 0, 1, 2, 3, etc accordingly.
TIA for any advice
 
     
     
    