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