Python Forum
Using Ab Operator in Query Function - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: General Coding Help (https://python-forum.io/forum-8.html)
+--- Thread: Using Ab Operator in Query Function (/thread-23649.html)



Using Ab Operator in Query Function - Chandan - Jan-10-2020

Hi There,
I am practicing the query function using different conditions. However, when I use the below condition I am not getting the accurate output.
When I run below syntax I can see all the Actor's name who's Budget is >= 150 is coming up.

I would like to see only Pierce Brosnan with Budget >=150
I appreciate your advice here.

Below is the syntax:

var5=bond.query('Actor=="Pierce Brosnan"' and 'Budget >=150')
Kind regards,
CK

Hi There,
I was able to do it with the below syntax: you can ignore this now.

var5=bond.query("Actor=='Pierce Brosnan' and Budget >=150")
var5

Thanks
CK