So I have this data with ID, date, and if they did activities on that day
ID DATE DONE
1 2009-1-3 Yes
1 2009-1-15 Yes
2 2009-9-3 Yes
3 2009-10-7 No
1 2009-12-1 Yes
3 2009-10-8 Yes
2 2009-10-21 Yes
So I want to groupby and create columns with months and 1 if they did the activity in that month 0 o.w
ID 2009-1 2009-2 ... 2009-9 2009-10 2009-11 2009-12
1 1 0 ... 0 0 0 1
2 0 0 ... 1 1 0 0
3 0 0 ... 0 0 0 0
Thank you