Unfortunately yes. sqlite
is currently the only "flavor" supported by write_frame
. See https://github.com/pydata/pandas/blob/master/pandas/io/sql.py#L155
def write_frame(frame, name=None, con=None, flavor='sqlite'): """ Write records stored in a DataFrame to SQLite. The index will currently be dropped """ if flavor == 'sqlite': schema = get_sqlite_schema(frame, name) else: raise NotImplementedError
Writing a simple write_frame
should be pretty simple. For example, something like this might work (unverified!):
import pymssql conn = pymssql.connect(host='SQL01', user='user', password='password', database='mydatabase') cur = conn.cursor()
source share