-
- Notifications
You must be signed in to change notification settings - Fork 19.4k
ENH: Raise ValueError for unsupported Window functions #27275
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
Changes from 5 commits
Commits
Show all changes
18 commits Select commit Hold shift + click to select a range
8e03461 ENH: Raise ValueError for unsupported Window functions
ihsansecer b671484 Improve docs for win_type
ihsansecer 693c9d1 Add whatsnew
ihsansecer e8b62b6 Catch AttributeError and raise ValueError instead
ihsansecer b65b9e5 Hangle list-like args
ihsansecer 6be036f Skip if no scipy
ihsansecer 5fd5f50 Format using black
ihsansecer 3988dab Raise AttributeError instead of conflicting ValueError
ihsansecer dda8c3c Merge remote-tracking branch 'upstream/master' into val-window-agg
ihsansecer 1bf2e2a Remove ' from whatsnew
ihsansecer 03b4dae Change ValueError with AttributeError and catch TypeError
ihsansecer a3e81cc Test each function one by one
ihsansecer 69ae66d Test unknown function
ihsansecer d3b989e Format
ihsansecer 413123b Merge remote-tracking branch 'upstream/master' into val-window-agg
ihsansecer 546479b Raise single error for invalid functions
ihsansecer 0a03b00 Remove from doc
ihsansecer 9b8baa0 Remove new line
ihsansecer File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| | @@ -511,6 +511,7 @@ class Window(_Window): | |
| Set the labels at the center of the window. | ||
| win_type : str, default None | ||
| Provide a window type. If ``None``, all points are evenly weighted. | ||
| Other types are only applicable for `mean` and `sum` functions. | ||
| ||
| See the notes below for further information. | ||
| on : str, optional | ||
| For a DataFrame, column on which to calculate | ||
| | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit. This suggestion is invalid because no changes were made to the code. Suggestions cannot be applied while the pull request is closed. Suggestions cannot be applied while viewing a subset of changes. Only one suggestion per line can be applied in a batch. Add this suggestion to a batch that can be applied as a single commit. Applying suggestions on deleted lines is not supported. You must change the existing code in this line in order to create a valid suggestion. Outdated suggestions cannot be applied. This suggestion has been applied or marked resolved. Suggestions cannot be applied from pending reviews. Suggestions cannot be applied on multi-line comments. Suggestions cannot be applied while the pull request is queued to merge. Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.