DataFrame包含字符函数

Scroll Down

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