In [36]: dfOut[36]: A B C Da 0 2 6 0b 6 1 5 2c 0 2 6 0d 9 3 2 2In [37]: rowsOut[37]: ['a', 'c']In [38]: df.drop(rows)Out[38]: A B C Db 6 1 5 2d 9 3 2 2In [39]: df[~((df.A == 0) & (df.B == 2) & (df.C == 6) & (df.D == 0))]Out[39]: A B C Db 6 1 5 2d 9 3 2 2In [40]: df.ix[rows]Out[40]: A B C Da 0 2 6 0c 0 2 6 0In [41]: df[((df.A == 0) & (df.B == 2) & (df.C == 6) & (df.D == 0))]Out[41]: A B C Da 0 2 6 0c 0 2 6 0
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)