当我尝试从 jupyter 笔记本中的 postgressql 读取数据时,我看到连接错误。错误提示:
Connection info needed in SQLAlchemy format, example:
postgresql://username:password@hostname/dbname
or an existing connection: dict_keys([])
据我所知,示例格式与我提供的连接字符串匹配。 我还检查了 sqlachemy 的版本是否已更新。 我错过了什么?
engine=create_engine(f'postgresql://postgres:root@localhost/GoldPrices')
engine.connect()
#To load ipython-sql
%load_ext sql
%sql postgresql://postgres:root@localhost/GoldPrices