use index to access row dataframe python code example Example: retrieve row by index pandas rowData = dfObj.loc[ 'b' , : ]