title: Escape single quote when using Pandas with tuple for IN statement
body: <p>I am trying to use the IN statement with psycopg2. I am passing a tuple, however one of my items is a string that contains a single quote (ex: l'Enfant Plaza). </p>
  
  <p>When converting it into a tuple, Python automatically adds double quotes (ex: ('Union Station', "l'Enfant Plaza", 'Dupont Cir'))</p>
  
  <p>Therefore, when I execute the SQL query, I am getting an error: </p>
  
  <pre><code>dataframe = pd.read_sql("""SELECT * FROM trips
                                  WHERE originlocation IN {}
                              """.format(origin_locations_tuple), connection)
  
  
  ERROR: column "l'Enfant Plaza" does not exist
  </code></pre>