So I want to use isin() method with df.query(), to select rows with id in a list: id_list. Similar question was asked bef
isin()
df.query()
id
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')