title: Iteratively insert rows into a postgreSQL database using SQLAlchemy in python
body: <p>I am writing a script that reads data from excel files and writes into a postgresql database. I have read data from the excel file and stored each row data as an array of strings.</p>
  
  <p>I tried a couple of things, like  </p>
  
  <pre><code>  for x in range(len(sh.columns)):
          i = users.insert()
          i.execute({sh.columns[x] : sh.values[0][x]})
  </code></pre>
  
  <p>Here is the reference to my Excel sheet and the table I'm editing in the postgreSQL database I referred to by users.</p>
  
  <p>I also tried an </p>
  
  <p><code>'INSERT INTO users VALUES %s'%(tuple(sh.values[0])</code></p>
  
  <p>and a few more variations of that.</p>