pandas number the index from 1 code example Example: get index number pandas dataframe df.index[df['BoolCol'] == True].tolist()