I was wondering about how you convert this df
Market | Date | N |
---|---|---|
First | 11/21/21 | 2 |
Second | 11/21/21 | 3 |
Third | 11/21/21 | 4 |
First | 11/22/21 | 9 |
Second | 11/22/21 | 6 |
Third | 11/22/21 | 7 |
to this
Date | First | Second | Third |
---|---|---|---|
11/21/21 | 2 | 3 | 4 |
11/22/21 | 9 | 6 | 7 |