home / github / issue_comments

Menu
  • Search all tables
  • GraphQL API

issue_comments: 472446172

This data as json

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/2788#issuecomment-472446172 https://api.github.com/repos/pydata/xarray/issues/2788 472446172 MDEyOklzc3VlQ29tbWVudDQ3MjQ0NjE3Mg== 2448579 2019-03-13T14:31:18Z 2019-03-13T14:31:18Z MEMBER

http://xarray.pydata.org/en/stable/internals.html#extending-xarray There seems to be a misunderstanding. The docs say that defining an accessor is equivalent to defining an additional property of the Dataset class, so you don't have to recreate DataArray or Dataset. You just need to use register_dataarray_accessor and register_dataset_accessor as in that example.

What about that example isn't clear enough? Would it help if the example in @TomNicholas's comment above was added to the documentation?

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  414552031
Powered by Datasette · Queries took 0.637ms · About: xarray-datasette