html_url,issue_url,id,node_id,user,created_at,updated_at,author_association,body,reactions,performed_via_github_app,issue
https://github.com/pydata/xarray/issues/7378#issuecomment-1493220291,https://api.github.com/repos/pydata/xarray/issues/7378,1493220291,IC_kwDOAMm_X85ZALvD,2448579,2023-04-02T04:26:57Z,2023-04-02T04:26:57Z,MEMBER,"> would one have to create these names for each method?
Yes I think so.
> [xarray.Dataset.var](https://docs.xarray.dev/en/stable/generated/xarray.Dataset.var.html#xarray.Dataset.var) suggests to see [numpy.var](https://numpy.org/doc/stable/reference/generated/numpy.var.html#numpy.var) which is about computing variance but I don't want to guess wrong.
Yes things like `var`, `std` etc. are pretty standard so you should able to find them. If not, feel free to ask !
","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,1497131525
https://github.com/pydata/xarray/issues/7378#issuecomment-1485891524,https://api.github.com/repos/pydata/xarray/issues/7378,1485891524,IC_kwDOAMm_X85YkOfE,35968931,2023-03-27T21:35:14Z,2023-03-27T21:35:14Z,MEMBER,"Hi @Amisha2778 - great to hear you are interested. You don't need my permission - please have a go at solving any issue that looks interesting to you, and please ask questions if you have any difficulties!","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,1497131525
https://github.com/pydata/xarray/issues/7378#issuecomment-1463915266,https://api.github.com/repos/pydata/xarray/issues/7378,1463915266,IC_kwDOAMm_X85XQZMC,35968931,2023-03-10T14:50:52Z,2023-03-10T14:50:52Z,MEMBER,"Hi @mahamtariq58, thanks for your interest! We don't normally assign issues to individuals, you are just welcome to have a go at solving any issue that interests you.","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,1497131525
https://github.com/pydata/xarray/issues/7378#issuecomment-1351995978,https://api.github.com/repos/pydata/xarray/issues/7378,1351995978,IC_kwDOAMm_X85QldJK,35968931,2022-12-14T19:05:19Z,2022-12-14T19:05:19Z,MEMBER,"That's a useful observation, thank you @maawoo!
This comes from the way we generate our code for the many different aggregations xarray can perform. We actually use [this script](https://github.com/pydata/xarray/blob/main/xarray/util/generate_aggregations.py) to automatically generate all the source code for all the aggregations in [this file](https://github.com/pydata/xarray/blob/main/xarray/core/_aggregations.py). That script has a [template that is filled in](https://github.com/pydata/xarray/blob/021c73e12cccb06c017ce6420dd043a0cfbf9f08/xarray/util/generate_aggregations.py#L103) for each method.
Currently the template looks like this
```python
TEMPLATE_REDUCTION_SIGNATURE = '''
def {method}(
self,
dim: Dims = None,
*,{extra_kwargs}
keep_attrs: bool | None = None,
**kwargs: Any,
) -> {obj}:
""""""
Reduce this {obj}'s data by applying ``{method}`` along some dimension(s).
Parameters
----------'''
```
where in the case of variance the `method` is just `var` so ""variance"" isn't in the generated docstring anywhere.
How might we fix this? One immediate thought that might help is to change the template to use a `method_name` and a `long_name`, where `method_name` is `var` but `long_name` is `variance` for example. This shouldn't be particularly difficult, and we would welcome a PR if you would be interested in contributing? We would help you out :slightly_smiling_face:
Or we might change the docstrings in some other, more granular way. Adding examples to aggregation methods would also have to deal with the fact they are autogenerated https://github.com/pydata/xarray/issues/6793
","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,1497131525