Python SQL Alchemy不会将现有表附加到熊猫

Python SQL Alchemy不会将现有表附加到熊猫,python,pandas,sqlalchemy,Python,Pandas,Sqlalchemy,我只是想把表上传到公司服务器上,但在第一次上传后,它不会在同一个表中追加或替换 #Import Libraries# import pyodbc import sqlalchemy as sal from sqlalchemy import create_engine import pandas as pd #SQL Alchemy Connection String engine = sal.create_engine('mssql+pyodbc://GRATHDB03\REPLICA/D

我只是想把表上传到公司服务器上,但在第一次上传后,它不会在同一个表中追加或替换

#Import Libraries# 
import pyodbc
import sqlalchemy as sal
from sqlalchemy import create_engine
import pandas as pd
#SQL Alchemy Connection String

engine = sal.create_engine('mssql+pyodbc://GRATHDB03\REPLICA/DATAWRHS-TRAINING?driver=SQL Server Native Client 11.0?Trusted_Connection=yes',
                           fast_executemany=True
                          )
#Read and Upload the file
df=pd.read_csv(r'C:\Users\ehan\Downloads\results-survey177217 (1).csv')
df.columns=df.columns.str.replace('/', '').str.replace('?','').str.replace('&','').str.replace(';','').str.replace(',','').str.replace(':','').str.replace('Kindly rate your trainer on the following catagories','')
df.columns=df.columns.str.replace('[','').str.replace(']','')
df['Date submitted']=pd.to_datetime(df['Date submitted'], dayfirst=True)
df['Date started']=pd.to_datetime(df['Date started'],dayfirst=True)
df.to_sql('limesurveytest3', engine, index=False, if_exists='append',schema='[dbo]')
这里是错误

(pyodbc.ProgrammingError)('42S01',“[42S01][Microsoft][SQL Server原生客户端11.0][SQL Server]数据库中已存在名为'limesurveytest3'的对象。(2714)(SQLExecDirectW)”)

未使用[]

df.to_sql('limesurveytest3', engine, index=False, if_exists='append',schema='dbo')

尝试
schema='dbo'
而不是
schema='dbo'