回答編集履歴

1

d

2020/01/13 12:19

投稿

tiitoi
tiitoi

スコア21956

test CHANGED
@@ -4,28 +4,36 @@
4
4
 
5
5
  ```python
6
6
 
7
+ df = [
8
+
9
+ "2007_000027.jpg",
10
+
7
- import numpy as np
11
+ "174",
12
+
13
+ "101",
14
+
15
+ "349",
16
+
17
+ "351",
18
+
19
+ "14",
20
+
21
+ ]
8
22
 
9
23
 
10
24
 
11
- box = ["2007_000027.jpg", 174, 101, 349, 351, 14]
12
-
13
-
14
-
15
- box = np.array([[x] for x in box[1:]])
25
+ box = np.array([[x] for x in df[1:]])
16
26
 
17
27
  print(box)
18
28
 
19
- # [[174]
29
+ # [['174']
20
30
 
21
- # [101]
31
+ # ['101']
22
32
 
23
- # [349]
33
+ # ['349']
24
34
 
25
- # [351]
35
+ # ['351']
26
36
 
27
- # [ 14]]
37
+ # ['14']]
28
-
29
- print(box.shape)
30
38
 
31
39
  ```