locate named rows in DataFrame code example
Example 1: dataframe get row by name
row_data = df.loc[ 'a' , : ]
Example 2: pandas return specific row
df.iloc[1] # replace index integer with specific row number
row_data = df.loc[ 'a' , : ]
df.iloc[1] # replace index integer with specific row number