質問編集履歴
2
画像の追加
title
CHANGED
File without changes
|
body
CHANGED
@@ -32,6 +32,10 @@
|
|
32
32
|
16 27.0 4 151.0 90.00 2735.0 18.0 82 1 pontiac phoenix
|
33
33
|
18 16.0 6 250.0 105.0 3897.0 18.5 75 1 chevroelt chevelle malibu
|
34
34
|
|
35
|
+
|
36
|
+

|
37
|
+
|
38
|
+
|
35
39
|
### 試したこと
|
36
40
|
|
37
41
|
他の方がされていた同様の質問に「run allですればよい」という回答があり
|
1
該当ソースコードの情報が不十分であったため修正
title
CHANGED
File without changes
|
body
CHANGED
@@ -17,9 +17,20 @@
|
|
17
17
|
### 該当のソースコード
|
18
18
|
|
19
19
|
```
|
20
|
+
import pandas as pd
|
21
|
+
data_train = pd.read_csv("train.tsv", sep ="\t")
|
20
22
|
data_train = data_train.drop(["car name"], axis=1)
|
21
23
|
|
22
24
|
```
|
25
|
+
"train.tsv"データ 一部抜粋
|
26
|
+
id mpg cylinders displacement horsepower weight acceleration model year origin car name
|
27
|
+
0 29.0 4 135.0 84.00 2525.0 16.0 82 1 dodge aries se
|
28
|
+
3 31.9 4 89.0 71.00 1925.0 14.0 79 2 vw rabbit custom
|
29
|
+
9 19.0 6 156.0 108.0 2930.0 15.5 76 3 toyota mark ii
|
30
|
+
11 28.0 4 90.0 75.00 2125.0 14.5 74 1 dodge colt
|
31
|
+
13 37.7 4 89.0 62.00 2050.0 17.3 81 3 toyota tercel
|
32
|
+
16 27.0 4 151.0 90.00 2735.0 18.0 82 1 pontiac phoenix
|
33
|
+
18 16.0 6 250.0 105.0 3897.0 18.5 75 1 chevroelt chevelle malibu
|
23
34
|
|
24
35
|
### 試したこと
|
25
36
|
|