Skip to content

TST: Use (unused) window parameter of test_freq_window_not_implemented #54947

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

Conversation

ihsansecer
Copy link
Contributor

Realized that window parameter is unused so this is fixing it. Calling sum function as the exception is only raised when a function is called with VariableOffsetWindowIndexer. Not sure if I need to add an entry to whatsnew for this

  • All code checks passed.
  • Added an entry in the latest doc/source/whatsnew/vX.X.X.rst file if fixing a bug or adding a new feature.

@@ -208,7 +208,9 @@ def get_window_bounds(
step: int | None = None,
) -> tuple[np.ndarray, np.ndarray]:
if step is not None:
raise NotImplementedError("step not implemented for variable offset window")
raise NotImplementedError(
"step is not supported with variable offset window"
Copy link
Member

Choose a reason for hiding this comment

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

Could you keep this message unchanged?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

@mroeschke mroeschke added the Testing pandas testing functions or related to the test suite label Sep 5, 2023
@mroeschke mroeschke added this to the 2.2 milestone Sep 6, 2023
@mroeschke mroeschke merged commit 6cb1da9 into pandas-dev:main Sep 6, 2023
@mroeschke
Copy link
Member

Thanks @ihsansecer

mroeschke pushed a commit to mroeschke/pandas that referenced this pull request Sep 11, 2023
pandas-dev#54947)

* Use window parameter of test_freq_window_not_implemented

* Revert change in exception message
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Testing pandas testing functions or related to the test suite
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants