質問編集履歴
1
修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -24,7 +24,7 @@
|
|
24
24
|
|
25
25
|
```ここに言語を入力
|
26
26
|
|
27
|
-
train['user_id'].map(
|
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(
|
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
|
|