ValueError: The indices for endog and exog are not aligned 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)