in
newDropList = [9,10,11,12,22,50,51,60,61]
newDB = newDB[newDB[‘groupId’].isin(newDropList)]
直接查询表中...groupId列,值为newDropList的记录
not in
newDropList = [9,10,11,12,22,50,51,60,61]
newDB = newDB[-newDB[‘groupId...以上这篇pandas 像SQL一样使用WHERE IN查询条件说明就是小编分享给大家的全部内容了,希望能给大家一个参考。