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