pandas get row where code example Example 1: how to get a row from a dataframe in python df.iloc[[index]] Example 2: dataframe get row by name row_data = df.loc[ 'a' , : ]