【发布时间】:2019-03-27 10:51:17
【问题描述】:
鉴于子字符串存在于特定 col 的行中,从数据帧中删除行。
df:
Parent Child score
1stqw Whoert 0.305125
tWowe Tasert 0.308132
Worert Picert 0.315145
子字符串 = [Wor,Tas]
删除包含子字符串的行。
更新 df:
Parent Child score
1stqw Whoert 0.305125
谢谢!!
【问题讨论】:
标签: python python-3.x python-2.7 pandas dataframe