質問編集履歴

2

コード

2020/07/13 22:23

投稿

assa
assa

スコア35

test CHANGED
File without changes
test CHANGED
@@ -42,7 +42,7 @@
42
42
 
43
43
 
44
44
 
45
- size_mapping = {'L': 3, 'M': 2, 'S':1 }
45
+ size_mapping = {'L': 3, 'M': 2, ''XL:1 }
46
46
 
47
47
  df['size'] = df['size'].map(size_mapping)
48
48
 

1

コード

2020/07/13 22:23

投稿

assa
assa

スコア35

test CHANGED
File without changes
test CHANGED
@@ -40,7 +40,7 @@
40
40
 
41
41
  df.columns=['colors','size','price','classlabel1']
42
42
 
43
- df
43
+
44
44
 
45
45
  size_mapping = {'L': 3, 'M': 2, 'S':1 }
46
46