def _write_mysql(frame, table, names, cur):
    bracketed_names = [('`' + column + '`') for column in names]
col_names = ','.join(bracketed_names)
wildcards = ','.join(['%s'] * len(names))
Python Pandas write to sql with NaN values