You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
I am failing to fit a SarimaxModel because the model reports that the exogenous and endogenous dataframes do not have the same index despite coming from the same dataframe.
After debugging, this seems to be due to the fact that the _get_transformed_data method does not preserve the index using the default transformer
#raises ValueError: The indices for endog and exog are not aligned Expected behavior
No error should be raised because the two dataframes should have the same index
The text was updated successfully, but these errors were encountered:
Describe the bug
I am failing to fit a SarimaxModel because the model reports that the exogenous and endogenous dataframes do not have the same index despite coming from the same dataframe.
After debugging, this seems to be due to the fact that the
_get_transformed_data
method does not preserve the index using the default transformerI have been able to correct this using
But perhaps it would be better to modify
FunctionTransformer.transform
as this does not preserve the index of the input series
To Reproduce
#raises ValueError: The indices for endog and exog are not aligned
Expected behavior
No error should be raised because the two dataframes should have the same index
The text was updated successfully, but these errors were encountered: