Python Forum

Full Version: Using Ab Operator in Query Function
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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