-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
ENH: Forward & back fill methods #1651
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
Can you explain? I don't think bottleneck is xarray aware, so I'm not surprised by this. NumPy doesn't have a generic interface for external functions (only ufuncs). |
Right, but numpy functions return the original type?
|
Not quite -- many numpy functions check for a method of the same name on their argument and call it instead of the numpy routine. If you look at the source of |
Other numpy functions, e.g., |
Ah, that explains a lot. Thanks for the clarification. |
@MaximilianR - I'm a big +1 on these features. Pandas has a |
Closed by #1640 |
I think with
np.flip
andbn.push
, this should be simple. They're both fairly new and so would require version checks / upgrading the minimums.One small issue, I wonder if anyone has come across this:
bottleneck
returns the numpy array rather than the DataArray - is that because it's not operating with the correct numpy interface?Forward fill:
Backfill:
The text was updated successfully, but these errors were encountered: