how to get index value of a row in pandas code example
Example 1: get index number pandas dataframe
df.index[df['BoolCol'] == True].tolist()
Example 2: retrieve row by index pandas
rowData = dfObj.loc[ 'b' , : ]
df.index[df['BoolCol'] == True].tolist()
rowData = dfObj.loc[ 'b' , : ]