TypeError Traceback (most recent call last)
< ipython-input-7-e07dabde75c0> in < module>
5 total3 = pd.DataFrame()
6 for i in range(len(Year)):
----> 7 total1[Year[i]] = explore1.iloc[i*len(explore1)/5:(i+1)*len(explore1)/5,:].mean()
8 total2[Year[i]] = explore2.iloc[i*len(explore1)/5:(i+1)*len(explore1)/5,:].mean()
9 total3[Year[i]] = explore3.iloc[i*len(explore1)/5:(i+1)*len(explore1)/5,:].mean()
python3在这个位置提醒iloc中必须用整形,请问怎么修改?
2020-04-21