I'm currently building a recommender system using Goodreads data.
I want to change string user ids into integers.
Current user ids are like this: '0d688fe079530ee1fe6fa85eab10ec5c'
I want to change it into integers(e.g. 1
, 2
, 3
, ...), to have the same integer ids which share the same string ids. I've considered using function df.groupby('user_id')
, but I couldn't figure out how to do this.
I would be very thankful if anybody let me know how to change.