pandas get index of row 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' , : ]