1import pyodbc
2import pandas as pd
3...
4cnxn = pyodbc.connect('DRIVER={{Microsoft Access Driver (*.mdb, *.accdb)}};DBQ=' + \
5 '{};Uid={};Pwd={};'.format(db_file, user, password)
6
7query = "SELECT * FROM mytable WHERE INST = '796116'"
8dataf = pd.read_sql(query, cnxn)
9cnxn.close()