您几乎拥有它,但是必须使用“按位或”运算符:
In [6]: df[(df.one == 1) | (df.two == 7)]Out[6]: one three two0 1 9 52 3 17 7In [7]: df[(df.one.isin(checkList)) | (df.two.isin(checkList))]Out[7]: one three two0 1 9 52 3 17 7

您几乎拥有它,但是必须使用“按位或”运算符:
In [6]: df[(df.one == 1) | (df.two == 7)]Out[6]: one three two0 1 9 52 3 17 7In [7]: df[(df.one.isin(checkList)) | (df.two.isin(checkList))]Out[7]: one three two0 1 9 52 3 17 7