The simple code would be:
df.index[condition]
so something like this:
df.index[df['column1'] == True].tolist()
.tolist() is used when there are multiple values match the condition
The simple code would be:
df.index[condition]
so something like this:
df.index[df['column1'] == True].tolist()
.tolist() is used when there are multiple values match the condition