pandas get index only some rows by condition code example Example: get index number pandas dataframe df.index[df['BoolCol'] == True].tolist()