{"database": "github", "table": "issue_comments", "is_view": false, "human_description_en": "where issue = 304021813 and user = 6815844 sorted by updated_at descending", "rows": [["https://github.com/pydata/xarray/issues/1978#issuecomment-371989690", "https://api.github.com/repos/pydata/xarray/issues/1978", 371989690, "MDEyOklzc3VlQ29tbWVudDM3MTk4OTY5MA==", 6815844, "2018-03-10T01:18:11Z", "2018-03-10T01:18:11Z", "MEMBER", "Yes. \r\n```python\r\nIn [7]: da.rolling(date=3).construct('rolling_date')\r\nOut[7]: \r\n<xarray.DataArray (item: 2, date: 6, rolling_date: 3)>\r\narray([[[nan, nan,  0.],\r\n        [nan,  0.,  1.],\r\n        [ 0.,  1.,  2.],\r\n        [ 1.,  2.,  3.],\r\n        [ 2.,  3.,  4.],\r\n        [ 3.,  4.,  5.]],\r\n\r\n       [[nan, nan,  6.],\r\n        [nan,  6.,  7.],\r\n        [ 6.,  7.,  8.],\r\n        [ 7.,  8.,  9.],\r\n        [ 8.,  9., 10.],\r\n        [ 9., 10., 11.]]])\r\nDimensions without coordinates: item, date, rolling_date\r\n```\r\ndoes the similar thing (`rolling_window` in your example).\r\n\r\nFYI, using `sum` without skipna option for such a *strided* DataArray (in your `test_rolling_window_values`) is not a good idea.\r\nWe internally use `np.nansum` and this copies the entire array once. It throws away the advantage of the strided trick.\r\n`sum(skipna=False)` is memory efficient.\r\n", "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", null, 304021813]], "truncated": false, "filtered_table_rows_count": 1, "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 \"issue\" = :p0 and \"user\" = :p1 order by updated_at desc limit 101", "params": {"p0": "304021813", "p1": "6815844"}}, "facet_results": {"author_association": {"name": "author_association", "type": "column", "hideable": false, "toggle_url": "/github/issue_comments.json?issue=304021813&user=6815844", "results": [{"value": "MEMBER", "label": "MEMBER", "count": 1, "toggle_url": "http://xarray-datasette.fly.dev/github/issue_comments.json?issue=304021813&user=6815844&author_association=MEMBER", "selected": false}], "truncated": false}, "user": {"name": "user", "type": "column", "hideable": false, "toggle_url": "/github/issue_comments.json?issue=304021813&user=6815844", "results": [{"value": 6815844, "label": "fujiisoup", "count": 1, "toggle_url": "http://xarray-datasette.fly.dev/github/issue_comments.json?issue=304021813", "selected": true}], "truncated": false}, "issue": {"name": "issue", "type": "column", "hideable": false, "toggle_url": "/github/issue_comments.json?issue=304021813&user=6815844", "results": [{"value": 304021813, "label": "Efficient rolling 'trick'", "count": 1, "toggle_url": "http://xarray-datasette.fly.dev/github/issue_comments.json?user=6815844", "selected": true}], "truncated": false}}, "suggested_facets": [{"name": "created_at", "type": "date", "toggle_url": "http://xarray-datasette.fly.dev/github/issue_comments.json?issue=304021813&user=6815844&_facet_date=created_at"}, {"name": "updated_at", "type": "date", "toggle_url": "http://xarray-datasette.fly.dev/github/issue_comments.json?issue=304021813&user=6815844&_facet_date=updated_at"}], "next": null, "next_url": null, "private": false, "allow_execute_sql": true, "query_ms": 30.862100000376813}