【发布时间】:2022-12-19 13:49:59
【问题描述】:
当我运行以下代码时出现错误 - AttributeError: 'str' object has no attribute 'isoformat'
我表中的所有字段都是文本字段。
engine = create_engine(
f'postgresql+psycopg2://{_db_cred["USER"]}:'
f'{password}@{host}:'
f'{port}/{db_name}'
)
with engine.connect() as connection:
result = pandas.read_sql(
con=connection,
sql="select * from table1"
)
【问题讨论】:
标签: pandas