Hi I have the next dataframe
user_id webpage
1 google
1 bing
2 google
2 google
2 yahoo
and I would like to create a result dataframe like this
user_id google bing yahoo
1 1 1 0
2 2 0 1
it counts the ocurrences by id
I just found a solution for counting the frequencies in general, but not turning the occurrences in its own columns and put the count in its own column.