python大数据回归预测模型,一直报索引错误

python大数据回归预测模型,一直报索引错误

img


一直报KeyError: "None of [Int64Index([1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,\n 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013],\n dtype='int64')] are in the [index]"错误

你读到的data变量没有1994~2013的行