程序问答   发布时间:2022-06-01  发布网站:大佬教程  code.js-code.com
大佬教程收集整理的这篇文章主要介绍了pandas.read_excel() 输出溢出错误:Python int 太大,无法转换为 C int大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。
@H_874_0@如何解决pandas.read_excel() 输出溢出错误:Python int 太大,无法转换为 c int? 开发过程中遇到pandas.read_excel() 输出溢出错误:Python int 太大,无法转换为 c int的问题如何解决?下面主要结合日常开发的经验,给出你关于pandas.read_excel() 输出溢出错误:Python int 太大,无法转换为 c int的解决方法建议,希望对你解决pandas.read_excel() 输出溢出错误:Python int 太大,无法转换为 c int有所启发或帮助;

我使用的是 ubuntu 18.04,pandas==1.2.1

我的 excel 文件看起来像这样

seq           userID      point     .....
2.01e^+12       A        231231.15
2.012e^+12      B          123
2.0131e^+12     C           3
2.41e^+12       D         2312
2.41e^+12       E         31.15
@H_925_2@max(seq) = 2.41e^+12 最大值(点)= 231231.15

当我 pd.read_excel("file_name.xLSX") 时,它会在标题中输出错误消息

来自资源:

  1. OverflowError: Python int too large to convert to C long torchtext.datasets.text_classification.DATASETS['AG_NEWS']() -> 告诉我我需要将 csv.fIEld_size_limit 更改为 sys.maxsize 但是找不到如何更改 excel.fIEld_size_limit

  2. "OverflowError: Python int too large to convert to C long" on windows but not mac -> 告诉我我需要将 seq,point 列设置为浮动数据类型。我使用 pd.read_excel("file_name.xLSX",converters={'seq':float,"point":float}) 但没有修复。

当我删除两个浮点列时,我可以读取 excel 文件。如何修复此错误?

@H_874_0@解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)

大佬总结

以上是大佬教程为你收集整理的pandas.read_excel() 输出溢出错误:Python int 太大,无法转换为 C int全部内容,希望文章能够帮你解决pandas.read_excel() 输出溢出错误:Python int 太大,无法转换为 C int所遇到的程序开发问题。

如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。

本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。