当前位置: 首页 > news >正文

pandas and sqlalchemy compatibility

Error:

TypeError: init() got multiple values for argument ‘schema’

Error in:
pandas2.0.3 and sqlalchemy1.4.46

Original answer:

As you stated, a workaround is to downgrade to SQLAlchemy<2.0,

pip install --upgrade sqlalchemy==1.4.47
There is already a fix in pandas (https://github.com/pandas-dev/pandas/pull/48576). Either install pandas from git or wait for a new release.

Edit: @DrD pointed out that the commit is already merged and will be part of pandas 2.x, also the comments point to the probability of pandas < 2.0 never supporting SQLAlchemy 2.x.

Share
Edit
Follow
edited Apr 26, 2023 at 16:39
answered Feb 10, 2023 at 22:41
cabo’s user avatar
cabo
13711 silver badge1010 bronze badges
2
as of today (Mar 28) the issue is merged on master, but no release was done, it looks like it will be part of pandas 2.* which is hopefully released, soon. –
DrD
CommentedMar 28, 2023 at 15:06


方法三:安装sqlalchemy-databricks 以代替SQLAlchemy,前提把SQLAlchemy卸载干净,以防到时冲突报错。
21 Aug 2024


http://www.mrgr.cn/news/3124.html

相关文章:

  • 微课录制不再难:精选三款录屏软件助你一臂之力
  • API 接口选择那个?RESTful、GraphQL、gRPC、WebSocket、Webhook
  • 计算机网络中的 CDN 与内容分发网络
  • 采用先进的人工智能视觉分析技术,能够精确识别和分析,提供科学、精准的数据支持的智慧物流开源了。
  • (10)女生如何面对男生提供的情绪价值
  • C++ TinyWebServer项目总结(7. Linux服务器程序规范)
  • Kafka基本概念
  • 将 x 减到 0 的最小操作数(LeetCode)
  • haproxy实验
  • 关于小型光伏电站气象站的介绍
  • 面试题目:(6)翻转二叉树
  • 【Nodejs】六、express框架
  • 深入浅出:你需要了解的用户数据报协议(UDP)
  • vue项目在线预览docx文件
  • MobileVit 系列算法
  • nvidia系列教程-AGX-Orin pcie网卡I350调试笔记
  • 一篇初学者入门Python匿名函数与Lambda表达式详细教程
  • Zookeeper的在Ubuntu20.04上的集群部署
  • AI秘境-墨小黑奇遇记 (七):掉发的代价:神经网络与“秃头效应”
  • generator函数和async/await