{"database": "github", "table": "issue_comments", "is_view": false, "human_description_en": "where author_association = \"MEMBER\", issue = 143877458 and user = 10050469 sorted by updated_at descending", "rows": [["https://github.com/pydata/xarray/pull/806#issuecomment-218372473", "https://api.github.com/repos/pydata/xarray/issues/806", 218372473, "MDEyOklzc3VlQ29tbWVudDIxODM3MjQ3Mw==", 10050469, "2016-05-11T06:23:27Z", "2016-05-11T06:23:27Z", "MEMBER", "Apart for the doc typo I mentioned, this looks very good, thanks! \n", "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", null, 143877458], ["https://github.com/pydata/xarray/pull/806#issuecomment-202488506", "https://api.github.com/repos/pydata/xarray/issues/806", 202488506, "MDEyOklzc3VlQ29tbWVudDIwMjQ4ODUwNg==", 10050469, "2016-03-28T17:06:14Z", "2016-03-28T17:06:14Z", "MEMBER", "Thanks for the clarification. Would it make sense to make a `@lazy_property` out of it in oder to avoid multiple builds?\n", "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", null, 143877458], ["https://github.com/pydata/xarray/pull/806#issuecomment-202479266", "https://api.github.com/repos/pydata/xarray/issues/806", 202479266, "MDEyOklzc3VlQ29tbWVudDIwMjQ3OTI2Ng==", 10050469, "2016-03-28T16:43:34Z", "2016-03-28T16:43:34Z", "MEMBER", "Oh, I realize that this doesn't answer your question though :flushed: \n", "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", null, 143877458], ["https://github.com/pydata/xarray/pull/806#issuecomment-202476963", "https://api.github.com/repos/pydata/xarray/issues/806", 202476963, "MDEyOklzc3VlQ29tbWVudDIwMjQ3Njk2Mw==", 10050469, "2016-03-28T16:40:05Z", "2016-03-28T16:40:05Z", "MEMBER", "Yes, this looks very good, thanks! \n\n@khaeru : I had the same question and just tested it:\n\n``` python\nimport xarray as xr\nimport numpy as np\n\n@xr.register_dataset_accessor('geo')\nclass GeoAccessor(object):\n    def __init__(self, xarray_obj):\n        print('In constructor')\n        self._obj = xarray_obj\n\n    @property\n    def center(self):\n        # return the geographic center point of this dataset\n        lon = self._obj.latitude\n        lat = self._obj.longitude\n        return (float(lon.mean()), float(lat.mean()))\n\n    def plot(self):\n        print('plot data on a map')  # e.g., using Cartopy\n\n# Nothing is printed\nds = xr.Dataset({'longitude': np.linspace(0, 10),\n                  'latitude': np.linspace(0, 20)})\n\n# out: In constructor\nout = ds.geo.center\n\n# out: In constructor\n#      plot data on a map\nds.geo.plot()\n```\n\nSo the constructor is called only if the property is accessed, which is good. the drawback is that a new object is instantiated at each access.\n", "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", null, 143877458]], "truncated": false, "filtered_table_rows_count": 4, "expanded_columns": [], "expandable_columns": [[{"column": "issue", "other_table": "issues", "other_column": "id"}, "title"], [{"column": "user", "other_table": "users", "other_column": "id"}, "login"]], "columns": ["html_url", "issue_url", "id", "node_id", "user", "created_at", "updated_at", "author_association", "body", "reactions", "performed_via_github_app", "issue"], "primary_keys": ["id"], "units": {}, "query": {"sql": "select html_url, issue_url, id, node_id, user, created_at, updated_at, author_association, body, reactions, performed_via_github_app, issue from issue_comments where \"author_association\" = :p0 and \"issue\" = :p1 and \"user\" = :p2 order by updated_at desc limit 101", "params": {"p0": "MEMBER", "p1": "143877458", "p2": "10050469"}}, "facet_results": {"author_association": {"name": "author_association", "type": "column", "hideable": false, "toggle_url": "/github/issue_comments.json?author_association=MEMBER&issue=143877458&user=10050469", "results": [{"value": "MEMBER", "label": "MEMBER", "count": 4, "toggle_url": "http://xarray-datasette.fly.dev/github/issue_comments.json?issue=143877458&user=10050469", "selected": true}], "truncated": false}, "user": {"name": "user", "type": "column", "hideable": false, "toggle_url": "/github/issue_comments.json?author_association=MEMBER&issue=143877458&user=10050469", "results": [{"value": 10050469, "label": "fmaussion", "count": 4, "toggle_url": "http://xarray-datasette.fly.dev/github/issue_comments.json?author_association=MEMBER&issue=143877458", "selected": true}], "truncated": false}, "issue": {"name": "issue", "type": "column", "hideable": false, "toggle_url": "/github/issue_comments.json?author_association=MEMBER&issue=143877458&user=10050469", "results": [{"value": 143877458, "label": "Decorators for registering custom accessors in xarray", "count": 4, "toggle_url": "http://xarray-datasette.fly.dev/github/issue_comments.json?author_association=MEMBER&user=10050469", "selected": true}], "truncated": false}}, "suggested_facets": [{"name": "created_at", "type": "date", "toggle_url": "http://xarray-datasette.fly.dev/github/issue_comments.json?author_association=MEMBER&issue=143877458&user=10050469&_facet_date=created_at"}, {"name": "updated_at", "type": "date", "toggle_url": "http://xarray-datasette.fly.dev/github/issue_comments.json?author_association=MEMBER&issue=143877458&user=10050469&_facet_date=updated_at"}], "next": null, "next_url": null, "private": false, "allow_execute_sql": true, "query_ms": 161.15776299557183}