Ashenbert 2019-01-24 12:54 采纳率: 0%
浏览 4522

python中index out of bound报错,该怎么修改?

图片说明
求各位大佬帮我看看到底哪里出了问题,在line70的地方显示如下报错

File "pandas_libs\index.pyx", line70, in pandas._libs.index.get_value_box

IndexError: index out of bounds

C:\Users\sijia\Anaconda3\lib\site-packages\spyder\widgets\variableexplorer\utils.py:414: FutureWarning: 'summary' is deprecated and will be removed in a future version.
display = value.summary()

n,mu temp在之前都没有出现过也没有赋值过

  • 写回答

2条回答 默认 最新

  • 毕小宝 领域专家: 后端开发技术领域 2019-01-25 10:01
    关注

    数组越界了,为什么要用:-1呢,这个变量的作用不是临时存储变量吗,换成普通数组不可以吗?

    评论

报告相同问题?