.) * (a1[i]*a2[i])
我试着运行这个简单的脚本,得到错误的"IndexError: index out of bounds" .请您知道如何避免这个错误吗我理解由数字5引起的错误,但是我不能更改,因为a2数组是从txt (a2= np.loadtxt('data.txt',unpack=True, usecols=[1])加载的,它的长度是5,您知道吗?
我有一些想要聚合的数据,但是我得到了超出界限的索引错误,而且我似乎找不出原因。data[i,:] if i > np.size(tvec[:,0]):只有当我将period设为日或月时,我才会得到错误/Documents/DTU - design og innovation/4. semester/Introduktion til programmering og databehandling (Pytho