I have a dataframe with datetimes (column 0) as index. example shown below:
DateTime Category Value
16:24:00 A 51
16:24:00 B 52
16:24:00 C 53
16:24:00 D 54
17:28:24 A 71
17:28:24 B 72
17:28:24 C 73
17:28:24 D 74
I need to transpose the data so that "Category" Column 1 becomes my column headers and value remains the dependent variable with respect to the datetime. I'm looking for an output as shown below.
DateTime A B C D
16:24:00 51 52 53 54
17:28:24 71 72 73 74