-
Notifications
You must be signed in to change notification settings - Fork 13
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
Error on rolling_apply when returning multiple values #11
Comments
Hi @PedroLacerdaELTE |
Hi, All! I've got same issue. `
) Test:
prepend_na(np.ones(4), 20)
prepend_na(np.ones((4,2)), 2)
prepend_na(np.ones((4,3)), 2)
prepend_na(np.ones((4,4)), 2)
prepend_na(np.ones((4,1)), 2)
` |
And
|
I had the same problem |
Version 0.9.8 brings a support of the funcs with multiple output for the @emiliobasualdo @PedroLacerdaELTE @miko1ann |
Hi
This is somewhat related to issue #9
I'm using rolling_apply on a function that returns multiple values.
Something like this:
However I'm getting this error:
ValueError: all the input arrays must have same number of dimensions, but the array at index 0 has 1 dimension(s) and the array at index 1 has 2 dimension(s)
The problem is that, when the NaN are prepended, a 1D vector of NaN is prepended.
Here:
I noticed that the nans function is ready to get the shape argument but the prepend only send n, instead of n and len(array[0])
I'd propose making this change on prepend_na:
Note also the change from hstack to vstack
IMPORTANT: this breaks the implementation for 1D arrays if array[0] is a number and doesn't have len()
Regards
The text was updated successfully, but these errors were encountered: