回答編集履歴

1

Update

2021/10/27 13:07

投稿

melian
melian

スコア20675

test CHANGED
@@ -52,7 +52,7 @@
52
52
 
53
53
  df[product_list] = [
54
54
 
55
- [1 if p in df.loc[r, '商材'] else 0 for p in product_list]
55
+ [int(p in df.loc[r, '商材']) for p in product_list]
56
56
 
57
57
  for r in range(len(df))
58
58