I am relatively new to python and am trying to get rows where columns have certain values.
Here is example of my code
item=mydf[mydf["Item Name"]=="Pregabalin"]
type=mydf[mydf["type"]=="Pregabalin 300mg"]
mydf[item & Strength]
However when I run this I get an error TypeError: ufunc 'bitwise_and' not supported for the input types, and the inputs could not be safely coerced to any supported types according to the casting rule ''safe''
Does anyone know why I am getting this error and what I can do just to return specific values? Any help would greatly be appreciated!