I have csv files that require sorting. In each one there is a column for 'answer' and next to it a column for the 'date'. Is there some panda code to turn the dates into a header and then organize the answers by dates? For example:
answer date
0 7/15/16
0 7/15/16
1 7/15/16
1 7/22/16
0 7/22/16
3 7/22/16
to
7/15/16 7/22/16
0 1
0 0
1 3