用Python做OLS回归出现内外生变量不匹配怎么解决?
做简单的OLS回归,结果出现ValueError: The indices for endog and exog are not aligned
sm这个包要求输入为list。。。呜呜呜所以把dataframe格式转换为list格式df.tolist()
用Python做OLS回归出现内外生变量不匹配怎么解决?
做简单的OLS回归,结果出现ValueError: The indices for endog and exog are not aligned
sm这个包要求输入为list。。。呜呜呜所以把dataframe格式转换为list格式df.tolist()