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/pull/3988#issuecomment-643448026,https://api.github.com/repos/pydata/xarray/issues/3988,643448026,MDEyOklzc3VlQ29tbWVudDY0MzQ0ODAyNg==,14808389,2020-06-12T19:30:03Z,2020-06-12T19:30:03Z,MEMBER,I think this is ready for merging; the fix of the `DataArray.plot` summary is going to be a new PR. So unless there are any objections I'm going to merge tomorrow.,"{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,603930174
https://github.com/pydata/xarray/pull/3988#issuecomment-625550162,https://api.github.com/repos/pydata/xarray/issues/3988,625550162,MDEyOklzc3VlQ29tbWVudDYyNTU1MDE2Mg==,14808389,2020-05-07T23:38:28Z,2020-05-14T15:30:59Z,MEMBER,"I added the accessor templates from `pandas` (we should eventually outsource these to a [separate package](https://github.com/pydata/xarray/issues/3361#issuecomment-618338469) used by both `pandas` and `xarray`) and modified the [API page](https://xarray-keewis.readthedocs.io/en/accessor-documentation/api.html) to display the accessor version of the plotting functions.
I think we should add a accessor section to each of the main objects (`Dataset` and `DataArray`), where we either copy what `pandas` does – listing every method / attribute of the accessor as a subsection of the class documentation – or we could show them as attributes (just like what we do for the injected numpy functions) and generate separate pages for the accessors.","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,603930174
https://github.com/pydata/xarray/pull/3988#issuecomment-618357855,https://api.github.com/repos/pydata/xarray/issues/3988,618357855,MDEyOklzc3VlQ29tbWVudDYxODM1Nzg1NQ==,14808389,2020-04-23T11:52:58Z,2020-04-23T11:52:58Z,MEMBER,"where should the docstring of the accessor come from? Right now, this is the docstring of the return value which seems reasonable to me.
I added tests verifying that `cls.property` returns the accessor class and `obj.property` the accessor instance. Do we need additional checks for `__doc__`?.","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,603930174
https://github.com/pydata/xarray/pull/3988#issuecomment-617763273,https://api.github.com/repos/pydata/xarray/issues/3988,617763273,MDEyOklzc3VlQ29tbWVudDYxNzc2MzI3Mw==,14808389,2020-04-22T12:58:18Z,2020-04-22T12:58:18Z,MEMBER,"there are a few of my questions / comments we can resolve by using something like
```python
class UncachedAccessor:
def __init__(self, accessor):
self._accessor = accessor
def __get__(self, obj, cls):
if obj is None:
return self._accessor
return self._accessor(obj)
```
The only disadvantage is that now `pydoc` (or `help()`) show the accessor as a class. That was already the case for `str` and `dt`, but `plot` was a function.
I think we could try to trick `inspect.getmembers` (which is used to decide which kind of output should be done), but that would require a lot of monkeypatching I'd rather not do.
`pandas` simply uses the same docstring for the class and `__call__`, which is not ideal but a lot simpler.","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,603930174