-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
Rolling.apply documentation not clear #25656
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
The
So the problem is that your expression doesn't reduce to a scalar. What distinction are you trying to make with Series here? This will fail if you replace with a NumPy array as well (though admittedly with a different error message) |
Yup, that makes it clearer. It initially read as though multiple values could be returned through the Series |
I want to realize some ideas like this: |
The current documentation for rolling.apply states:
This makes it sound like a series consisting of multiple values can be returned by the apply func. This is not true. The following error results:
Pandas v 0.24.1
The text was updated successfully, but these errors were encountered: