python dataframe find value in column and return value in row code example Example: fetch row where column is equal to a value pandas df.loc[df['column_name'] == 'value']