回答編集履歴
1
修正
answer
CHANGED
@@ -1,6 +1,5 @@
|
|
1
1
|
```Python
|
2
2
|
df = df.set_index(['IDs', 'Time'])
|
3
|
-
df.sort_index(inplace=True)
|
4
3
|
df = df.unstack()
|
5
4
|
df = df.swaplevel(axis=1).sort_index(axis=1)
|
6
5
|
#Time 11-Feb-2020 00:00 12-Feb-2020 00:00 \
|