: list index out of range# 当负整数索引超过返回时In [11]: L[-100]-----------------------------------------------...)
in ()----> 1 L[-100]IndexError: list index out of range# slice...pandas as pdIn [115]: df = pd.DataFrame({'open':[1,2,3],'high':[4,5,6],'low':[6,3,1]}, index=pd.period_range...='int64')
# 索引为字符串In [168]: df = pd.DataFrame({'a':[1,2,3],'b':[4,5,6]}, index=list('234'))In [169]...我在工程中使用matlab的矩阵和python混合使用以上对象,出现最多就是shape不对应,index,columns 错误。