-
Notifications
You must be signed in to change notification settings - Fork 60
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: Updated join key in transform_new function in scale transformer #228
base: main
Are you sure you want to change the base?
Conversation
Feat/lags is none
added Value error to prevent running the backtest without features
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Ciao @jhug12! Thanks for the contribution. Will review asap. |
Ciao @jhug12, thanks again for the amazing work and spotting this bug. I have a fairly similar request like with your other PR: would you mind only keeping the commits related to the issue you raised? It'd be easier to review. Unfortunately that's a part of the codebase I am yet to become familiar with. |
Fixes #227
What does this implement/fix? Explain your changes.
This pull request resolves an issue in the
transform_new
function of the scale transformer module, where an error occurred during execution due to a mismatch in index columns during a join operation. Previously, the function attempted to join theX
DataFrame with the_mean
DataFrame on index columns ('time' and 'entity'), but_mean
contained only the 'entity' column. The fix was implemented by adjusting the join keys to ensure they align correctly across both DataFrames, thus eliminating the key mismatch error.In addition to fixing the bug, this pull request updates the
transform_new
function to match the format of thetransform
andinvert
functions.