What is the best practice to calculate frequency of list of elements in python within multiple pandas dataframe? Let’s say I have following datafarme df1 coresponding to user1: