I have a pandas dataframe like following:
user_id, section, count
1, section_1, 1
1, section_2, 5
1, section_3, 1
2, section_3, 1
3, section_1, 4
3, section_3, 3
I want to make separate column for each section and want to get the count
as the row value like this
user_id, section_1, section_2, section_3
1, 1, 5, 1
2, 0, 0, 1
3, 4, 0, 3
How can I do that in pandas?