pandas读取pymysql和解析excel的一系列问题(版本不匹配)

pandas读取pymysql和解析excel的一系列问题,大部分都是版本不匹配导致的

尤其是pandas,numpy,pymysql,openpyxl不匹配导致

bash 复制代码
from sqlalchemy import create_engine
import numpy as np
import pandas as pd
conn=create_engine("mysql+pymysql://user:pass@host:3306/db")
#pandas版本如果超过2,那么如下就会报错
conn.execute("select * from db",conn)
#而如果pandas是1.X,而numpy还是2以上,执行如下也会报错
pd.read_sql("select * from db",conn)

参考版本:

bash 复制代码
pandas (1.1.5)
numpy (1.19.5)
PyMySQL (1.0.2)
SQLAlchemy (1.4.22)
openpyxl (3.0.7)
相关推荐
虎头金猫1 天前
4K 视频总卡在公网带宽?用 N1 + OpenList 把网盘播放链路重新理顺
运维·服务器·网络·python·容器·beautifulsoup·pandas
Xiu Yan1 天前
Python 数据分析:Pandas DataFrame 零基础入门教程
python·jupyter·pycharm·numpy·pandas
尤鸟倦1 天前
OneNote table复制到Excel遇到的各种问题
excel
2601_966949652 天前
为什么量化回测中 for 循环比 DataFrame 慢三个数量级?从向量化原理讲起
开发语言·python·pandas·股票数据·quantdash
2501_930707782 天前
使用C#代码使用条件格式为 Excel 隔行设置颜色
c#·excel
Xiu Yan2 天前
Python 数据分析:Pandas Series 零基础入门教程
python·jupyter·pycharm·numpy·pandas
leihefeng2 天前
PX04-用 Python 读 Excel 画折线图,还能直接插回 Excel 文件
python·excel
yanlaifan2 天前
Excel中指定单元格不能输入内容的方法
excel
gCode Teacher 格码致知3 天前
Pandas教学-6:coerce详解
python·pandas
babe小鑫3 天前
信息与计算科学专业应届生面试 怎么证明自己能解决业务问题
学习·r语言·excel