Skip to content

add column.shift #317

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

Merged
merged 3 commits into from
Nov 15, 2023
Merged

add column.shift #317

merged 3 commits into from
Nov 15, 2023

Conversation

MarcoGorelli
Copy link
Contributor

@MarcoGorelli MarcoGorelli commented Nov 10, 2023

Noticed in scikit-lego, but really any library related to forecasting would need this

@@ -811,6 +811,23 @@ def rename(self, name: str) -> Self:
"""
...

def shift(self, offset: int) -> Self:
Copy link
Collaborator

Choose a reason for hiding this comment

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

Dependent on #308, but offset should ideally be of type Scalar instead of int

@MarcoGorelli
Copy link
Contributor Author

agree, let's fix it up as part of that

@MarcoGorelli MarcoGorelli merged commit 098e11e into data-apis:main Nov 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants