我有一个要与数据框匹配的关键字,如果找到,我们想从数据框中删除包含该关键字的行
输入是以下格式的数据帧 PD
word1 word2 word3
0 (microglial, 0.4954) (coronavirus, 0.3376) (hippocampal, 0.3028)
1 (digital, 0.3623) (pandemic, 0.3448) (depression, 0.3238)
2 (telehealth, 0.4404) (disability, 0.4324) (disabilities, 0.4322)
3 (athletes, 0.4235) (scrimmages, 0.3895) (athlete, 0.379)
关键字是运动员
输出应该是
word1 word2 word3
0 (microglial, 0.4954) (coronavirus, 0.3376) (hippocampal, 0.3028)
1 (digital, 0.3623) (pandemic, 0.3448) (depression, 0.3238)
2 (telehealth, 0.4404) (disability, 0.4324) (disabilities, 0.4322)
任何建议表示赞赏