Skip to content

Dataset.apply method #140

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

Closed
shoyer opened this issue May 21, 2014 · 0 comments · Fixed by #189
Closed

Dataset.apply method #140

shoyer opened this issue May 21, 2014 · 0 comments · Fixed by #189

Comments

@shoyer
Copy link
Member

shoyer commented May 21, 2014

Dataset reduce methods (#131) suggested to me that it would be nice to support applying functions which map over all data arrays in a dataset. The signature of Dataset.apply could be modeled after GroupBy.apply and the implementation would be similar to #137 (but simpler).

For example, I should be able to write ds.apply(np.mean).

Note: It's still worth having #137 as a separate implementation because it can do some additional validation for dimensions and skip variables where the aggregation doesn't make sense.

shoyer added a commit to shoyer/xarray that referenced this issue Jul 25, 2014
@shoyer shoyer added this to the 0.2 milestone Jul 25, 2014
keewis pushed a commit to keewis/xarray that referenced this issue Jan 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant