回答編集履歴
1
訂正
test
CHANGED
@@ -10,24 +10,24 @@
|
|
10
10
|
|
11
11
|
xxb[i] = 0
|
12
12
|
|
13
|
-
xxb.columns
|
13
|
+
xxb = xxb.reindex(columns=xxb.columns.sort_values())
|
14
14
|
|
15
15
|
print(xxb)
|
16
16
|
|
17
17
|
|
18
18
|
|
19
|
-
#
|
19
|
+
#C 1 2 3 4 5 6
|
20
20
|
|
21
|
-
#
|
21
|
+
#A
|
22
22
|
|
23
|
-
#
|
23
|
+
#1 1 0 0 0 0 0
|
24
24
|
|
25
|
-
#
|
25
|
+
#2 0 0 1 0 0 0
|
26
26
|
|
27
|
-
#
|
27
|
+
#3 0 0 0 0 0 0
|
28
28
|
|
29
|
-
#
|
29
|
+
#4 0 0 0 0 1 0
|
30
30
|
|
31
|
-
#
|
31
|
+
#5 0 0 0 0 0 1
|
32
32
|
|
33
33
|
```
|