質問編集履歴
2
画像の追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -66,6 +66,14 @@
|
|
66
66
|
|
67
67
|
|
68
68
|
|
69
|
+
|
70
|
+
|
71
|
+
![イメージ説明](9a45f76be48e5dfc3297a7a08c768f0f.png)
|
72
|
+
|
73
|
+
|
74
|
+
|
75
|
+
|
76
|
+
|
69
77
|
### 試したこと
|
70
78
|
|
71
79
|
|
1
該当ソースコードの情報が不十分であったため修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -36,11 +36,33 @@
|
|
36
36
|
|
37
37
|
```
|
38
38
|
|
39
|
+
import pandas as pd
|
40
|
+
|
41
|
+
data_train = pd.read_csv("train.tsv", sep ="\t")
|
42
|
+
|
39
43
|
data_train = data_train.drop(["car name"], axis=1)
|
40
44
|
|
41
45
|
|
42
46
|
|
43
47
|
```
|
48
|
+
|
49
|
+
"train.tsv"データ 一部抜粋
|
50
|
+
|
51
|
+
id mpg cylinders displacement horsepower weight acceleration model year origin car name
|
52
|
+
|
53
|
+
0 29.0 4 135.0 84.00 2525.0 16.0 82 1 dodge aries se
|
54
|
+
|
55
|
+
3 31.9 4 89.0 71.00 1925.0 14.0 79 2 vw rabbit custom
|
56
|
+
|
57
|
+
9 19.0 6 156.0 108.0 2930.0 15.5 76 3 toyota mark ii
|
58
|
+
|
59
|
+
11 28.0 4 90.0 75.00 2125.0 14.5 74 1 dodge colt
|
60
|
+
|
61
|
+
13 37.7 4 89.0 62.00 2050.0 17.3 81 3 toyota tercel
|
62
|
+
|
63
|
+
16 27.0 4 151.0 90.00 2735.0 18.0 82 1 pontiac phoenix
|
64
|
+
|
65
|
+
18 16.0 6 250.0 105.0 3897.0 18.5 75 1 chevroelt chevelle malibu
|
44
66
|
|
45
67
|
|
46
68
|
|