human
Python Pandas: Get index of rows which column matches certain value
assistant
Here is some code to get index of rows in dataframe `df` which column 'BoolCol' matches value True

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

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