how to display a row based on its name from a dataframe code example Example: dataframe get row by name row_data = df.loc[ 'a' , : ]