SHARE
TWEET

Untitled

a guest Jan 4th, 2013 37 Never
  1. import pyodbc
  2.  
  3. import pandas.io.sql as psql
  4.  
  5. cnxn = pyodbc.connect(your_connection_info)
  6. cursor = cnxn.cursor()
  7. sql = ("""SELECT * FROM Source""")
  8.  
  9. df = psql.frame_query(sql, cnxn)
  10. cnxn.close()
RAW Paste Data
Top