質問編集履歴

1

ソースコード > df_result["タグ"] に対するisin()の引数をsearch_word_list からsearch_wordに修正

2022/10/18 12:35

投稿

yoshi216
yoshi216

スコア1

test CHANGED
File without changes
test CHANGED
@@ -29,7 +29,7 @@
29
29
  df_result["フラグ"] = np.where(
30
30
  df_result["タイトル"].str.contains(search_word) |
31
31
  df_result["本文"].str.contains(search_word) |
32
- df_result["タグ"].isin(search_word_list)
32
+ df_result["タグ"].isin(search_word)
33
33
  ,True, False)
34
34
  ```
35
35