I have a dataset with 30k unique users with each customer having multiple transaction. I aggregated the dataset with one record per user and containing aggregated information such as average transaction amount, last visit date etc. I have a lot of categorical variables. I need to find the most frequently occurring category per each customer and store it in the aggregated data set. How do I do that in Python ? Any referral link or hint is appreciated.
Thanks in advance