-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
DataArray.apply is missing #1074
Comments
We could try to get in a simple version of this before #964. My only concern is that the functionality here is slightly different from For This is also a concern for #964, because any new Two possible solutions, neither of which is fully satisfying:
|
Aha! For my use-case, |
As for the consistency concern, I wouldn't have expected that to be a big issue. I'd argue that most functions mapping |
I think #1130 is related. I also think that |
@burnpanck I missed your comments from a few weeks ago. Yes, please do make PRs to update the docs. I am OK with adding |
Actually, I think that |
In order to maintain a list of currently relevant issues, we mark issues as stale after a period of inactivity |
Not stale! Why not follow the pd convention of map vs apply for dataarray vs dataset? |
I want to apply a function over a given axis. This functionality is well defined and not covered by pipe (well, you can select the axis INSIDE the function passed, but it's bad practice because that means the function has an extra parameter to select the axis, not very KISS imo) |
In essence, I'm looking for the functionality of
xarray.core.utils.maybe_wrap_array
. I guess you are waiting for #964 to unify such functionality?The text was updated successfully, but these errors were encountered: