-
-
Notifications
You must be signed in to change notification settings - Fork 18.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
Changes from 15 commits
8e03461
b671484
693c9d1
e8b62b6
b65b9e5
6be036f
5fd5f50
3988dab
dda8c3c
1bf2e2a
03b4dae
a3e81cc
69ae66d
d3b989e
413123b
546479b
0a03b00
9b8baa0
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
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. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. this should be on .agg so I wouldn't add anything here There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
See the notes below for further information. | ||
on : str, optional | ||
For a DataFrame, a datetime-like column on which to calculate the rolling | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would pass here, then just use a single raise (line 326)