回答編集履歴
1
説明追加
test
CHANGED
@@ -59,3 +59,29 @@
|
|
59
59
|
['Satisfied', 'Confirm', 'N/A', 'Strange', 'CONFIRM!!', 'N/A']
|
60
60
|
|
61
61
|
```
|
62
|
+
|
63
|
+
|
64
|
+
|
65
|
+
普通は、以下のように使います。
|
66
|
+
|
67
|
+
```python
|
68
|
+
|
69
|
+
>>> df['Check'] = df.apply(lambda row: check_d[row["score"]+"_"+row["result"]], axis=1)
|
70
|
+
|
71
|
+
>>> print(df)
|
72
|
+
|
73
|
+
score result Check
|
74
|
+
|
75
|
+
0 OK GOOD Satisfied
|
76
|
+
|
77
|
+
1 OK BAD Confirm
|
78
|
+
|
79
|
+
2 OK N/A N/A
|
80
|
+
|
81
|
+
3 NG GOOD Strange
|
82
|
+
|
83
|
+
4 NG BAD CONFIRM!!
|
84
|
+
|
85
|
+
5 NG N/A N/A
|
86
|
+
|
87
|
+
```
|