Skip to content
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

Open
wants to merge 12 commits into
base: main
Choose a base branch
from

Conversation

jhug12
Copy link

@jhug12 jhug12 commented Jun 7, 2024

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 the X 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 the transform and invert functions.

Copy link

vercel bot commented Jun 7, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
functime-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 7, 2024 1:08pm

@jhug12 jhug12 changed the title fix: Updated join key in transform_new function in scale ttransformer fix: Updated join key in transform_new function in scale transformer Jun 7, 2024
@baggiponte
Copy link
Collaborator

Ciao @jhug12! Thanks for the contribution. Will review asap.

@baggiponte
Copy link
Collaborator

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.

@baggiponte baggiponte added bug Something isn't working forecasting Forecasters and adapters labels Jun 9, 2024
@baggiponte baggiponte added this to the 0.9.X milestone Jun 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working forecasting Forecasters and adapters
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Error in transform_new Function Due to Index Column Mismatch in Scale Transformer
2 participants