how to get a value from a row based on another value in that row pandas code example Example: fetch row where column is equal to a value pandas df.loc[df['column_name'] == 'value']