how to get the index number of a value in df code example Example: get index number pandas dataframe df.index[df['BoolCol'] == True].tolist()