Skip to content

Document keepdims #9333

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

Open
relativistic opened this issue Aug 12, 2024 · 1 comment
Open

Document keepdims #9333

relativistic opened this issue Aug 12, 2024 · 1 comment

Comments

@relativistic
Copy link

What is your issue?

I wanted to keep a dim after taking the median along that dim. I couldn't find anything about how to do this from either the median api docs , nor the aggregation docs.

After some googling though I found this feature was added in a PR through the keepdims kwarg.

It would be useful for this (plus any other hidden aggregation modes) to be documented in the Aggregation and/or apis. Discovery is one thing, and clarifying ambiguities is another. For example, what happens if I use keepdims to all the coordinates that used that dim?

@relativistic relativistic added the needs triage Issue that has not been reviewed by xarray team member label Aug 12, 2024
Copy link

welcome bot commented Aug 12, 2024

Thanks for opening your first issue here at xarray! Be sure to follow the issue template!
If you have an idea for a solution, we would really welcome a Pull Request with proposed changes.
See the Contributing Guide for more.
It may take us a while to respond here, but we really value your contribution. Contributors like you help make xarray better.
Thank you!

@dcherian dcherian added topic-documentation and removed needs triage Issue that has not been reviewed by xarray team member labels Aug 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants