質問編集履歴
2
csv形式に変換しても同様の出力となりました。
test
CHANGED
File without changes
|
test
CHANGED
@@ -22,7 +22,7 @@
|
|
22
22
|
|
23
23
|
OSError Traceback (most recent call last)
|
24
24
|
|
25
|
-
<ipython-input-
|
25
|
+
<ipython-input-2-7a10de68278f> in <module>
|
26
26
|
|
27
27
|
2 import numpy as np
|
28
28
|
|
@@ -156,104 +156,104 @@
|
|
156
156
|
|
157
157
|
|
158
158
|
|
159
|
-
PassengerId
|
160
|
-
|
161
|
-
1
|
162
|
-
|
163
|
-
2
|
164
|
-
|
165
|
-
3
|
166
|
-
|
167
|
-
4
|
168
|
-
|
169
|
-
5
|
170
|
-
|
171
|
-
6
|
172
|
-
|
173
|
-
7
|
174
|
-
|
175
|
-
8
|
176
|
-
|
177
|
-
9
|
178
|
-
|
179
|
-
10
|
180
|
-
|
181
|
-
11
|
182
|
-
|
183
|
-
12
|
184
|
-
|
185
|
-
13
|
186
|
-
|
187
|
-
14
|
188
|
-
|
189
|
-
15
|
190
|
-
|
191
|
-
16
|
192
|
-
|
193
|
-
17
|
194
|
-
|
195
|
-
18
|
196
|
-
|
197
|
-
19
|
198
|
-
|
199
|
-
20
|
200
|
-
|
201
|
-
21
|
202
|
-
|
203
|
-
22
|
204
|
-
|
205
|
-
23
|
206
|
-
|
207
|
-
24
|
208
|
-
|
209
|
-
25
|
210
|
-
|
211
|
-
26
|
212
|
-
|
213
|
-
27
|
214
|
-
|
215
|
-
28
|
216
|
-
|
217
|
-
29
|
218
|
-
|
219
|
-
30
|
220
|
-
|
221
|
-
31
|
222
|
-
|
223
|
-
32
|
224
|
-
|
225
|
-
33
|
226
|
-
|
227
|
-
34
|
228
|
-
|
229
|
-
35
|
230
|
-
|
231
|
-
36
|
232
|
-
|
233
|
-
37
|
234
|
-
|
235
|
-
38
|
236
|
-
|
237
|
-
39
|
238
|
-
|
239
|
-
40
|
240
|
-
|
241
|
-
41
|
242
|
-
|
243
|
-
42
|
244
|
-
|
245
|
-
43
|
246
|
-
|
247
|
-
44
|
248
|
-
|
249
|
-
45
|
250
|
-
|
251
|
-
46
|
252
|
-
|
253
|
-
47
|
254
|
-
|
255
|
-
48
|
256
|
-
|
257
|
-
49
|
258
|
-
|
259
|
-
50
|
159
|
+
PassengerId,Survived,Pclass,Name,Sex,Age,SibSp,Parch,Ticket,Fare,Cabin,Embarked
|
160
|
+
|
161
|
+
1,0,3,"Braund, Mr. Owen Harris",male,22,1,0,A/5 21171,7.25,,S
|
162
|
+
|
163
|
+
2,1,1,"Cumings, Mrs. John Bradley (Florence Briggs Thayer)",female,38,1,0,PC 17599,71.2833,C85,C
|
164
|
+
|
165
|
+
3,1,3,"Heikkinen, Miss. Laina",female,26,0,0,STON/O2. 3101282,7.925,,S
|
166
|
+
|
167
|
+
4,1,1,"Futrelle, Mrs. Jacques Heath (Lily May Peel)",female,35,1,0,113803,53.1,C123,S
|
168
|
+
|
169
|
+
5,0,3,"Allen, Mr. William Henry",male,35,0,0,373450,8.05,,S
|
170
|
+
|
171
|
+
6,0,3,"Moran, Mr. James",male,,0,0,330877,8.4583,,Q
|
172
|
+
|
173
|
+
7,0,1,"McCarthy, Mr. Timothy J",male,54,0,0,17463,51.8625,E46,S
|
174
|
+
|
175
|
+
8,0,3,"Palsson, Master. Gosta Leonard",male,2,3,1,349909,21.075,,S
|
176
|
+
|
177
|
+
9,1,3,"Johnson, Mrs. Oscar W (Elisabeth Vilhelmina Berg)",female,27,0,2,347742,11.1333,,S
|
178
|
+
|
179
|
+
10,1,2,"Nasser, Mrs. Nicholas (Adele Achem)",female,14,1,0,237736,30.0708,,C
|
180
|
+
|
181
|
+
11,1,3,"Sandstrom, Miss. Marguerite Rut",female,4,1,1,PP 9549,16.7,G6,S
|
182
|
+
|
183
|
+
12,1,1,"Bonnell, Miss. Elizabeth",female,58,0,0,113783,26.55,C103,S
|
184
|
+
|
185
|
+
13,0,3,"Saundercock, Mr. William Henry",male,20,0,0,A/5. 2151,8.05,,S
|
186
|
+
|
187
|
+
14,0,3,"Andersson, Mr. Anders Johan",male,39,1,5,347082,31.275,,S
|
188
|
+
|
189
|
+
15,0,3,"Vestrom, Miss. Hulda Amanda Adolfina",female,14,0,0,350406,7.8542,,S
|
190
|
+
|
191
|
+
16,1,2,"Hewlett, Mrs. (Mary D Kingcome) ",female,55,0,0,248706,16,,S
|
192
|
+
|
193
|
+
17,0,3,"Rice, Master. Eugene",male,2,4,1,382652,29.125,,Q
|
194
|
+
|
195
|
+
18,1,2,"Williams, Mr. Charles Eugene",male,,0,0,244373,13,,S
|
196
|
+
|
197
|
+
19,0,3,"Vander Planke, Mrs. Julius (Emelia Maria Vandemoortele)",female,31,1,0,345763,18,,S
|
198
|
+
|
199
|
+
20,1,3,"Masselmani, Mrs. Fatima",female,,0,0,2649,7.225,,C
|
200
|
+
|
201
|
+
21,0,2,"Fynney, Mr. Joseph J",male,35,0,0,239865,26,,S
|
202
|
+
|
203
|
+
22,1,2,"Beesley, Mr. Lawrence",male,34,0,0,248698,13,D56,S
|
204
|
+
|
205
|
+
23,1,3,"McGowan, Miss. Anna ""Annie""",female,15,0,0,330923,8.0292,,Q
|
206
|
+
|
207
|
+
24,1,1,"Sloper, Mr. William Thompson",male,28,0,0,113788,35.5,A6,S
|
208
|
+
|
209
|
+
25,0,3,"Palsson, Miss. Torborg Danira",female,8,3,1,349909,21.075,,S
|
210
|
+
|
211
|
+
26,1,3,"Asplund, Mrs. Carl Oscar (Selma Augusta Emilia Johansson)",female,38,1,5,347077,31.3875,,S
|
212
|
+
|
213
|
+
27,0,3,"Emir, Mr. Farred Chehab",male,,0,0,2631,7.225,,C
|
214
|
+
|
215
|
+
28,0,1,"Fortune, Mr. Charles Alexander",male,19,3,2,19950,263,C23 C25 C27,S
|
216
|
+
|
217
|
+
29,1,3,"O'Dwyer, Miss. Ellen ""Nellie""",female,,0,0,330959,7.8792,,Q
|
218
|
+
|
219
|
+
30,0,3,"Todoroff, Mr. Lalio",male,,0,0,349216,7.8958,,S
|
220
|
+
|
221
|
+
31,0,1,"Uruchurtu, Don. Manuel E",male,40,0,0,PC 17601,27.7208,,C
|
222
|
+
|
223
|
+
32,1,1,"Spencer, Mrs. William Augustus (Marie Eugenie)",female,,1,0,PC 17569,146.5208,B78,C
|
224
|
+
|
225
|
+
33,1,3,"Glynn, Miss. Mary Agatha",female,,0,0,335677,7.75,,Q
|
226
|
+
|
227
|
+
34,0,2,"Wheadon, Mr. Edward H",male,66,0,0,C.A. 24579,10.5,,S
|
228
|
+
|
229
|
+
35,0,1,"Meyer, Mr. Edgar Joseph",male,28,1,0,PC 17604,82.1708,,C
|
230
|
+
|
231
|
+
36,0,1,"Holverson, Mr. Alexander Oskar",male,42,1,0,113789,52,,S
|
232
|
+
|
233
|
+
37,1,3,"Mamee, Mr. Hanna",male,,0,0,2677,7.2292,,C
|
234
|
+
|
235
|
+
38,0,3,"Cann, Mr. Ernest Charles",male,21,0,0,A./5. 2152,8.05,,S
|
236
|
+
|
237
|
+
39,0,3,"Vander Planke, Miss. Augusta Maria",female,18,2,0,345764,18,,S
|
238
|
+
|
239
|
+
40,1,3,"Nicola-Yarred, Miss. Jamila",female,14,1,0,2651,11.2417,,C
|
240
|
+
|
241
|
+
41,0,3,"Ahlin, Mrs. Johan (Johanna Persdotter Larsson)",female,40,1,0,7546,9.475,,S
|
242
|
+
|
243
|
+
42,0,2,"Turpin, Mrs. William John Robert (Dorothy Ann Wonnacott)",female,27,1,0,11668,21,,S
|
244
|
+
|
245
|
+
43,0,3,"Kraeff, Mr. Theodor",male,,0,0,349253,7.8958,,C
|
246
|
+
|
247
|
+
44,1,2,"Laroche, Miss. Simonne Marie Anne Andree",female,3,1,2,SC/Paris 2123,41.5792,,C
|
248
|
+
|
249
|
+
45,1,3,"Devaney, Miss. Margaret Delia",female,19,0,0,330958,7.8792,,Q
|
250
|
+
|
251
|
+
46,0,3,"Rogers, Mr. William John",male,,0,0,S.C./A.4. 23567,8.05,,S
|
252
|
+
|
253
|
+
47,0,3,"Lennon, Mr. Denis",male,,1,0,370371,15.5,,Q
|
254
|
+
|
255
|
+
48,1,3,"O'Driscoll, Miss. Bridget",female,,0,0,14311,7.75,,Q
|
256
|
+
|
257
|
+
49,0,3,"Samaan, Mr. Youssef",male,,2,0,2662,21.6792,,C
|
258
|
+
|
259
|
+
50,0,3,"Arnold-Franchi, Mrs. Josef (Josefine Franchi)",female,18,1,0,349237,17.8,,S
|
1
csvの一部を追記しました。
test
CHANGED
File without changes
|
test
CHANGED
@@ -149,3 +149,111 @@
|
|
149
149
|
\AppData\Local\Continuum\anaconda3\lib\site-packages\pandas\io\parsers.py
|
150
150
|
|
151
151
|
の意味が分からず、検索をかけたのですが、原因の理解ができませんでした。
|
152
|
+
|
153
|
+
|
154
|
+
|
155
|
+
### csv
|
156
|
+
|
157
|
+
|
158
|
+
|
159
|
+
PassengerId Survived Pclass Name Sex Age SibSp Parch Ticket Fare Cabin Embarked
|
160
|
+
|
161
|
+
1 0 3 Braund, Mr. Owen Harris male 22 1 0 A/5 21171 7.25 S
|
162
|
+
|
163
|
+
2 1 1 Cumings, Mrs. John Bradley (Florence Briggs Thayer) female 38 1 0 PC 17599 71.2833 C85 C
|
164
|
+
|
165
|
+
3 1 3 Heikkinen, Miss. Laina female 26 0 0 STON/O2. 3101282 7.925 S
|
166
|
+
|
167
|
+
4 1 1 Futrelle, Mrs. Jacques Heath (Lily May Peel) female 35 1 0 113803 53.1 C123 S
|
168
|
+
|
169
|
+
5 0 3 Allen, Mr. William Henry male 35 0 0 373450 8.05 S
|
170
|
+
|
171
|
+
6 0 3 Moran, Mr. James male 0 0 330877 8.4583 Q
|
172
|
+
|
173
|
+
7 0 1 McCarthy, Mr. Timothy J male 54 0 0 17463 51.8625 E46 S
|
174
|
+
|
175
|
+
8 0 3 Palsson, Master. Gosta Leonard male 2 3 1 349909 21.075 S
|
176
|
+
|
177
|
+
9 1 3 Johnson, Mrs. Oscar W (Elisabeth Vilhelmina Berg) female 27 0 2 347742 11.1333 S
|
178
|
+
|
179
|
+
10 1 2 Nasser, Mrs. Nicholas (Adele Achem) female 14 1 0 237736 30.0708 C
|
180
|
+
|
181
|
+
11 1 3 Sandstrom, Miss. Marguerite Rut female 4 1 1 PP 9549 16.7 G6 S
|
182
|
+
|
183
|
+
12 1 1 Bonnell, Miss. Elizabeth female 58 0 0 113783 26.55 C103 S
|
184
|
+
|
185
|
+
13 0 3 Saundercock, Mr. William Henry male 20 0 0 A/5. 2151 8.05 S
|
186
|
+
|
187
|
+
14 0 3 Andersson, Mr. Anders Johan male 39 1 5 347082 31.275 S
|
188
|
+
|
189
|
+
15 0 3 Vestrom, Miss. Hulda Amanda Adolfina female 14 0 0 350406 7.8542 S
|
190
|
+
|
191
|
+
16 1 2 Hewlett, Mrs. (Mary D Kingcome) female 55 0 0 248706 16 S
|
192
|
+
|
193
|
+
17 0 3 Rice, Master. Eugene male 2 4 1 382652 29.125 Q
|
194
|
+
|
195
|
+
18 1 2 Williams, Mr. Charles Eugene male 0 0 244373 13 S
|
196
|
+
|
197
|
+
19 0 3 Vander Planke, Mrs. Julius (Emelia Maria Vandemoortele) female 31 1 0 345763 18 S
|
198
|
+
|
199
|
+
20 1 3 Masselmani, Mrs. Fatima female 0 0 2649 7.225 C
|
200
|
+
|
201
|
+
21 0 2 Fynney, Mr. Joseph J male 35 0 0 239865 26 S
|
202
|
+
|
203
|
+
22 1 2 Beesley, Mr. Lawrence male 34 0 0 248698 13 D56 S
|
204
|
+
|
205
|
+
23 1 3 McGowan, Miss. Anna "Annie" female 15 0 0 330923 8.0292 Q
|
206
|
+
|
207
|
+
24 1 1 Sloper, Mr. William Thompson male 28 0 0 113788 35.5 A6 S
|
208
|
+
|
209
|
+
25 0 3 Palsson, Miss. Torborg Danira female 8 3 1 349909 21.075 S
|
210
|
+
|
211
|
+
26 1 3 Asplund, Mrs. Carl Oscar (Selma Augusta Emilia Johansson) female 38 1 5 347077 31.3875 S
|
212
|
+
|
213
|
+
27 0 3 Emir, Mr. Farred Chehab male 0 0 2631 7.225 C
|
214
|
+
|
215
|
+
28 0 1 Fortune, Mr. Charles Alexander male 19 3 2 19950 263 C23 C25 C27 S
|
216
|
+
|
217
|
+
29 1 3 O'Dwyer, Miss. Ellen "Nellie" female 0 0 330959 7.8792 Q
|
218
|
+
|
219
|
+
30 0 3 Todoroff, Mr. Lalio male 0 0 349216 7.8958 S
|
220
|
+
|
221
|
+
31 0 1 Uruchurtu, Don. Manuel E male 40 0 0 PC 17601 27.7208 C
|
222
|
+
|
223
|
+
32 1 1 Spencer, Mrs. William Augustus (Marie Eugenie) female 1 0 PC 17569 146.5208 B78 C
|
224
|
+
|
225
|
+
33 1 3 Glynn, Miss. Mary Agatha female 0 0 335677 7.75 Q
|
226
|
+
|
227
|
+
34 0 2 Wheadon, Mr. Edward H male 66 0 0 C.A. 24579 10.5 S
|
228
|
+
|
229
|
+
35 0 1 Meyer, Mr. Edgar Joseph male 28 1 0 PC 17604 82.1708 C
|
230
|
+
|
231
|
+
36 0 1 Holverson, Mr. Alexander Oskar male 42 1 0 113789 52 S
|
232
|
+
|
233
|
+
37 1 3 Mamee, Mr. Hanna male 0 0 2677 7.2292 C
|
234
|
+
|
235
|
+
38 0 3 Cann, Mr. Ernest Charles male 21 0 0 A./5. 2152 8.05 S
|
236
|
+
|
237
|
+
39 0 3 Vander Planke, Miss. Augusta Maria female 18 2 0 345764 18 S
|
238
|
+
|
239
|
+
40 1 3 Nicola-Yarred, Miss. Jamila female 14 1 0 2651 11.2417 C
|
240
|
+
|
241
|
+
41 0 3 Ahlin, Mrs. Johan (Johanna Persdotter Larsson) female 40 1 0 7546 9.475 S
|
242
|
+
|
243
|
+
42 0 2 Turpin, Mrs. William John Robert (Dorothy Ann Wonnacott) female 27 1 0 11668 21 S
|
244
|
+
|
245
|
+
43 0 3 Kraeff, Mr. Theodor male 0 0 349253 7.8958 C
|
246
|
+
|
247
|
+
44 1 2 Laroche, Miss. Simonne Marie Anne Andree female 3 1 2 SC/Paris 2123 41.5792 C
|
248
|
+
|
249
|
+
45 1 3 Devaney, Miss. Margaret Delia female 19 0 0 330958 7.8792 Q
|
250
|
+
|
251
|
+
46 0 3 Rogers, Mr. William John male 0 0 S.C./A.4. 23567 8.05 S
|
252
|
+
|
253
|
+
47 0 3 Lennon, Mr. Denis male 1 0 370371 15.5 Q
|
254
|
+
|
255
|
+
48 1 3 O'Driscoll, Miss. Bridget female 0 0 14311 7.75 Q
|
256
|
+
|
257
|
+
49 0 3 Samaan, Mr. Youssef male 2 0 2662 21.6792 C
|
258
|
+
|
259
|
+
50 0 3 Arnold-Franchi, Mrs. Josef (Josefine Franchi) female 18 1 0 349237 17.8 S
|