home / github

Menu
  • Search all tables
  • GraphQL API

issue_comments

Table actions
  • GraphQL API for issue_comments

2 rows where issue = 67356079 sorted by updated_at descending

✎ View and edit SQL

This data as json, CSV (advanced)

Suggested facets: created_at (date), updated_at (date)

user 2

  • shoyer 1
  • mathause 1

issue 1

  • DataArray and virtual variables · 2 ✖

author_association 1

  • MEMBER 2
id html_url issue_url node_id user created_at updated_at ▲ author_association body reactions performed_via_github_app issue
91589696 https://github.com/pydata/xarray/issues/388#issuecomment-91589696 https://api.github.com/repos/pydata/xarray/issues/388 MDEyOklzc3VlQ29tbWVudDkxNTg5Njk2 mathause 10194086 2015-04-10T15:20:02Z 2015-04-10T15:20:02Z MEMBER

Ok, thanks - it seems I didn't even try :P

I find the name virtual_variables easier to grasp than dt, but better to be consistent with panda.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  DataArray and virtual variables 67356079
91359416 https://github.com/pydata/xarray/issues/388#issuecomment-91359416 https://api.github.com/repos/pydata/xarray/issues/388 MDEyOklzc3VlQ29tbWVudDkxMzU5NDE2 shoyer 1217238 2015-04-09T21:22:09Z 2015-04-09T21:22:09Z MEMBER

The short answer: they do have virtual variables, just not a virtual_variables attribute:

import pandas as pd import numpy as np import xray t = pd.date_range('2000-01-01', '2000-12-31', freq='6H') x = np.random.rand(*t.shape) time = xray.DataArray(t, name='t', dims='time') print time['time.month']

<xray.DataArray 'month' (time: 1461)> array([ 1, 1, 1, ..., 12, 12, 12], dtype=int32) Coordinates: * time (time) datetime64[ns] 2000-01-01 2000-01-01T06:00:00 2000-01-01T12:00:00 ...

I actually recently removed the virtual_variables attribute from Dataset on the development version. A cleaner way to handle virtual variables would be to add a .dt attribute like pandas, e.g., time.dt.month. That would also support discovery (e.g., time.dt.<tab> or ds.time.dt.<tab>) better than a special attribute to list permissible strings.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  DataArray and virtual variables 67356079

Advanced export

JSON shape: default, array, newline-delimited, object

CSV options:

CREATE TABLE [issue_comments] (
   [html_url] TEXT,
   [issue_url] TEXT,
   [id] INTEGER PRIMARY KEY,
   [node_id] TEXT,
   [user] INTEGER REFERENCES [users]([id]),
   [created_at] TEXT,
   [updated_at] TEXT,
   [author_association] TEXT,
   [body] TEXT,
   [reactions] TEXT,
   [performed_via_github_app] TEXT,
   [issue] INTEGER REFERENCES [issues]([id])
);
CREATE INDEX [idx_issue_comments_issue]
    ON [issue_comments] ([issue]);
CREATE INDEX [idx_issue_comments_user]
    ON [issue_comments] ([user]);
Powered by Datasette · Queries took 12.163ms · About: xarray-datasette