I am trying to grab the rows of a data frame that satisfy one or both of the following boolean statements:
1) df['colName'] == 0
2) df['colName'] == 1
I've tried these, but neither one works (throws errors):
df = df[df['colName']==0 or df['colName']==1]
df = df[df['colName']==0 | df['colName']==1]
Any other ideas?
