Postgres Select Rows With Duplicate Column Pandas