human
Python Pandas: Get index of rows which column matches certain value
assistant
Here is some code to get list of indexes of rows where column 'BoolCol' values match True

df[df['BoolCol'] == True].index.tolist()

#Warning: this code generation is experimental. Please inspect the code for any bugs before executing.