質問編集履歴

1

修正

2020/12/12 14:36

投稿

退会済みユーザー
test CHANGED
File without changes
test CHANGED
@@ -24,7 +24,7 @@
24
24
 
25
25
  ```ここに言語を入力
26
26
 
27
- train['user_id'].map(train[lambda x: train[train['user_id'] == x]['result'].value_counts())
27
+ train['user_id'].map(lambda x: train[train['user_id'] == x]['result'].value_counts())
28
28
 
29
29
  ```
30
30
 
@@ -42,7 +42,7 @@
42
42
 
43
43
  ```ここに言語を入力
44
44
 
45
- map(train[lambda x: train[train['user_id'] == x]['result'].value_counts()[0] / (train[lambda x: train[train['user_id'] == x]['result'].value_counts()[0] + train[lambda x: train[train['user_id'] == x]['result'].value_counts()[1]))
45
+ map(lambda x: train[train['user_id'] == x]['result'].value_counts()[0] / (lambda x: train[train['user_id'] == x]['result'].value_counts()[0] + lambda x: train[train['user_id'] == x]['result'].value_counts()[1]))
46
46
 
47
47
 
48
48