GUI上的索引越界错误

时间:2015-06-18 14:53:11

标签: python user-interface

在尝试使用一系列条目创建一个包含在列表中的GUI时,我和朋友经常会收到Index Out-of-bounds错误:

df = pandas.DataFrame(columns = list(self.workingData.columns))
ser = selectSpecies.isin(self.workingData["Species"])
for x in range((len(self.workingData.index))):
if(ser.iloc[x]): #Keeps getting index out of bounds error df =    
df.append(self.workingData.iloc[x,:])

我们在ser.iloc [x]上尝试了不同的索引,包括x - 1和x + 1,但没有用。如何以及为什么这个错误会被激怒?

0 个答案:

没有答案
相关问题