title: How can I insert a df into a postgres table with unique columns
body: <p>Please take your time while reading this.</p>
  <p>I am trying to insert a dataframe into an existing postgres table. The postgres table has unique columns that will conflict when the dataframe contains duplicate rows.</p>
  <p>How can I upload the dataframe to the table without making the table conflict when a duplicate unique row or a special character is inserted into the table.</p>
  <p>I'm using python and psycopg2 incase.</p>