You can also include the list within the query string:
>>> df.query('a in ["a", "b", "c"]')
This is the same as:
>>> df.query('a in @id_list')
You can also include the list within the query string:
>>> df.query('a in ["a", "b", "c"]')
This is the same as:
>>> df.query('a in @id_list')