ValueError: The indices for endog and exog are not aligned site:stackoverflow.com code example
Example: ValueError: The indices for endog and exog are not aligned
convert y shape
y_train=y_train.values.reshape(-1,1)
convert y shape
y_train=y_train.values.reshape(-1,1)