pandas过滤包含特定字符串的行

~df.col3.str.contains('u|z')
也就是在条件前面加~号,表示not
原文地址:https://www.cnblogs.com/xqnq2007/p/7728720.html