Python Forum
Using Ab Operator in Query Function
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Using Ab Operator in Query Function
#1
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
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  function for SQLite query not working pythonNoob 1 2,794 May-16-2018, 05:21 PM
Last Post: Larz60+

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020