guopengfa
发布于 2020-05-18 / 812 阅读 / 0 评论 / 0 点赞

DataFrame包含字符函数

bool = df.str.contains('Mr.') #不要忘记正则表达式的写法,'.'在里面要用'.'表示


评论