Postgres Find Value In Column Pandas Groupby