get a row by row name pandas code example
Example 1: dataframe get row by name
row_data = df.loc[ 'a' , : ]
Example 2: retrieve row by index pandas
rowData = dfObj.loc[ 'b' , : ]
row_data = df.loc[ 'a' , : ]
rowData = dfObj.loc[ 'b' , : ]