Logic operator for boolean indexing in Pandas

a[(a['some_column']==some_number) & (a['some_other_column']==some_other_number)]

works fine whereas

a[(a['some_column']==some_number) and (a['some_other_column']==some_other_number)]    
exists with error?

细节请看

猜你喜欢

转载自www.cnblogs.com/andy-0212/p/10069625.html