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

[ENH] fix Differencer for integer index #4984

Merged
merged 2 commits into from Aug 5, 2023
Merged

[ENH] fix Differencer for integer index #4984

merged 2 commits into from Aug 5, 2023

Conversation

fkiraly
Copy link
Collaborator

@fkiraly fkiraly commented Jul 29, 2023

This fixes an unreported bug in Differencer._inverse_transform for integer index.

In _inverse_transform, Differencer would call the shift method of the index which is not defined for integer based index - this should have used the internal _shift method.

The tests did not catch this as all tests were datetime-index based.
This has now been rectified.

@fkiraly fkiraly added module:transformations transformations module: time series transformation, feature extraction, pre-/post-processing bugfix Fixes a known bug or removes unintended behavior labels Jul 29, 2023
Copy link
Contributor

@benHeid benHeid left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Non blocking comment on the test cases

@benHeid benHeid merged commit 9f0345b into main Aug 5, 2023
24 checks passed
@benHeid benHeid deleted the fix-differencer-int branch August 5, 2023 07:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugfix Fixes a known bug or removes unintended behavior module:transformations transformations module: time series transformation, feature extraction, pre-/post-processing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants