How to count the occurrences of a column's value in a column of lists?
Consider the following dataframe: column_of_lists scalar_col 0 [100, 200, 300] 100 1 [100, 200, 200] 200 2 [300, 500] 300 3 [100, 100] 200 The desired output would be a Series, representing how many times the scalar value of scalar_col appears inside the list column. So, in our case: 1 # 100 appears once in… Read More How to count the occurrences of a column's value in a column of lists?