質問編集履歴
2
コード
test
CHANGED
File without changes
|
test
CHANGED
@@ -42,7 +42,7 @@
|
|
42
42
|
|
43
43
|
|
44
44
|
|
45
|
-
size_mapping = {'L': 3, 'M': 2, '
|
45
|
+
size_mapping = {'L': 3, 'M': 2, ''XL:1 }
|
46
46
|
|
47
47
|
df['size'] = df['size'].map(size_mapping)
|
48
48
|
|
1
コード
test
CHANGED
File without changes
|
test
CHANGED
@@ -40,7 +40,7 @@
|
|
40
40
|
|
41
41
|
df.columns=['colors','size','price','classlabel1']
|
42
42
|
|
43
|
-
|
43
|
+
|
44
44
|
|
45
45
|
size_mapping = {'L': 3, 'M': 2, 'S':1 }
|
46
46
|
|