sin*_*maz 10 python postgresql sqlalchemy dataframe
self.engine=create_engine("postgresql://postgres:12345@localhost/postgres")
self.con = self.engine.connect()
self.conn.autocommit = True
self.cursor = self.conn.cursor()
df.to_sql(symbol, schema='xxx', con=self.con, if_exists='append',
index=False)
df.to_sql(symbol, con=self.con, if_exists='append',
index=False)
Run Code Online (Sandbox Code Playgroud)
在将数据帧添加到 postgre sql 数据库时,我在这两种情况下都收到此错误
meta = MetaData(self.connectable, schema=schema)
Run Code Online (Sandbox Code Playgroud)
类型错误:init () 获得了参数“schema”的多个值
| 归档时间: |
|
| 查看次数: |
10435 次 |
| 最近记录: |