I have data like this
I wish to generate this:
How can I do this using Pandas? I know I need to group by id and order by date somehow... Thanks