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

df.loc[df['BoolCol']]

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