回答編集履歴
1
誤記修正
test
CHANGED
@@ -6,10 +6,10 @@
|
|
6
6
|
|
7
7
|
|
8
8
|
|
9
|
-
df['D'] =np.where(df['A'].str.contains('c'), 1, 0)
|
9
|
+
df['D'] = np.where(df['A'].str.contains('c'), 1, 0)
|
10
10
|
|
11
|
-
df['E'] =np.where(df['B'] > 300, 1, 0)
|
11
|
+
df['E'] = np.where(df['B'] > 300, 1, 0)
|
12
12
|
|
13
|
-
df['F'] =np.where(df['C'] == 'Y', 1, np.where(df['C'] == 'N', 2, 3))
|
13
|
+
df['F'] = np.where(df['C'] == 'Y', 1, np.where(df['C'] == 'N', 2, 3))
|
14
14
|
|
15
15
|
```
|