how to get the index of a row in df pandas code example Example: retrieve row by index pandas rowData = dfObj.loc[ 'b' , : ]