回答編集履歴

1

検証分を追記

2017/07/29 04:00

投稿

yukkeorg
yukkeorg

スコア985

test CHANGED
@@ -27,3 +27,63 @@
27
27
  0,6.8,3.7,9.9,16,7,5.3,4.9,5.1,5.1,5.2,4.7,4.7,1
28
28
 
29
29
  ```
30
+
31
+
32
+
33
+ ## 追記(2017/07/29 13:00)
34
+
35
+ BA決まってしまったあとですが、一応コメントに書きました私の環境での検証結果を貼っておきます。
36
+
37
+ ```
38
+
39
+ (pandas) yukke@yukke-main:~/tmp$ cat data.csv
40
+
41
+ temp(0),temp(1),temp(2),temp(3),temp(4),temp(5),temp(6),temp(7),temp(8),temp(9),temp(10),temp(11),temp(12),arrived
42
+
43
+ 0,0,4,8.1,13.1,12.3,9.1,9.2,6.4,6.6,6.3,6.5,6.9,1
44
+
45
+ 0,6.8,3.7,9.9,16,7,5.3,4.9,5.1,5.1,5.2,4.7,4.7,1
46
+
47
+ 0,3.4,30,61.4,27.8,11.5,11.7,11.9,12.8,13.4,14,14.5,15.6,0
48
+
49
+ 0,3.4,25,9.1,48,38,20.4,17.7,18.3,15,14.6,14.2,14.9,0
50
+
51
+ 0,6.8,9.9,19.7,12.8,13.6,14.3,14,14.2,15,14.3,14.5,15.3,1
52
+
53
+ 0,3.4,25,34.5,156.1,107.4,84.6,59.3,63.2,67.7,65.7,67.2,69.2,0
54
+
55
+ 0,0,37.6,92.2,198.7,137.7,125.3,99.2,90.1,93.8,92.4,93.8,90.9,0
56
+
57
+ 0,0,5.5,12,27.9,28.4,26.9,25.9,27.5,27.4,27.8,27.4,28.7,0
58
+
59
+ 0,0,4.3,1.4,1.1,1.3,1.5,1.7,1.8,1.8,1.8,1.8,1.8,0
60
+
61
+ 0,0,50.1,61.4,118.1,57,58.7,32.5,35.1,38.3,39.5,40.3,42.9,0
62
+
63
+ 0,0,25.6,88.4,88.4,47.1,76.8,70.6,70.6,76.7,81.4,78.9,80.2,0
64
+
65
+ (pandas) yukke@yukke-main:~/tmp$ python
66
+
67
+ Python 3.5.4rc1 (default, Jul 25 2017, 08:53:34)
68
+
69
+ [GCC 6.4.0 20170704] on linux
70
+
71
+ Type "help", "copyright", "credits" or "license" for more information.
72
+
73
+ >>> import pandas as pd
74
+
75
+ >>> df = pd.read_csv("data.csv")
76
+
77
+ >>> df["temp(0)"].tolist()
78
+
79
+ [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
80
+
81
+ >>>
82
+
83
+ (pandas) yukke@yukke-main:~/tmp$
84
+
85
+
86
+
87
+ ```
88
+
89
+