-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
ERR: better error message on invalid window when using .rolling #12669
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
Comments
yeah looks like the validation is only in place for a pull-requests welcome. |
I would prefer requiring an int raising with an informative |
I'm also in favor of requiring ints too. |
Dose this look all right? I don't think we need ' whatsnew entry'. Do we? |
@pt247 pls comment on PRs directly - always need a whatsnew entry |
The input validation is inconsistent in |
@gliptak these DO have different validations, as |
ok, that's fine. |
xref #12765. Let's pick up this as a test case and give a more meaningful error message. e.g. for
Window
thewin_type
is missing, so this should be the error.Note that
pd.DataFrame(np.arange(10)).rolling(2.).median()
works fine.pandas 0.18.0.
The text was updated successfully, but these errors were encountered: