热门

最新

红包

立Flag

投票

同城

我的

发布
qq_44821149
「已注销」
3 年前
trueqq_44821149

低版本的pandas==0.24.2时,读取xlsx方法)
使用BytesIO对象,声明流为bytes类型:read_excel报错:
must explicitly set engine if not passing in buffer or path for io。

res = requests.get(url)
BytesIO = pd.io.common.BytesIO
df = pd.read_excel(BytesIO(result.content))

或者
from pandas.io.common import BytesIO
df = pd.read_excel(BytesIO(result.content))

https://blog.csdn.net/MacwinWin/article/details/107611256
https://blog.csdn.net/weixin_40647516/article/details/123783668
————————————————
版权声明:本文为CSDN博主「confined.」的原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.csdn.net/qq_44821149/article/details/132413676

CSDN App 扫码分享
分享
评论
点赞
打赏
  • 复制链接
  • 举报
下一条:
奶茶店小程序案例
立即登录