home / github

Menu
  • GraphQL API
  • Search all tables

issue_comments

Table actions
  • GraphQL API for issue_comments

3 rows where issue = 270440308 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 2
  • mullenkamp 1

author_association 2

  • MEMBER 2
  • NONE 1

issue 1

  • Serializing attrs · 3 ✖
id html_url issue_url node_id user created_at updated_at ▲ author_association body reactions performed_via_github_app issue
341241720 https://github.com/pydata/xarray/issues/1681#issuecomment-341241720 https://api.github.com/repos/pydata/xarray/issues/1681 MDEyOklzc3VlQ29tbWVudDM0MTI0MTcyMA== mullenkamp 2656596 2017-11-01T21:03:10Z 2017-11-02T04:45:12Z NONE

Thanks for the reply. I'm currently using netcdf4 version 1.2.2, which seems slightly old but that's the default conda package. Ok, so just to clarify... The TypeError is correct in stating that each attribute value must be "a number, string, ndarray or a list/tuple of numbers/strings"? Those are the only options, correct?

Thanks again.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Serializing attrs 270440308
341245412 https://github.com/pydata/xarray/issues/1681#issuecomment-341245412 https://api.github.com/repos/pydata/xarray/issues/1681 MDEyOklzc3VlQ29tbWVudDM0MTI0NTQxMg== shoyer 1217238 2017-11-01T21:16:46Z 2017-11-01T21:16:46Z MEMBER

Yes, I think that's correct.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Serializing attrs 270440308
341238029 https://github.com/pydata/xarray/issues/1681#issuecomment-341238029 https://api.github.com/repos/pydata/xarray/issues/1681 MDEyOklzc3VlQ29tbWVudDM0MTIzODAyOQ== shoyer 1217238 2017-11-01T20:49:50Z 2017-11-01T20:49:50Z MEMBER

Which netCDF library were you using? I don't think netCDF as a file format has ever supported maps as attributes.

For example, looking at the spec, attributes can be a variable-length array of any scalar type (this is specifically for netCDF3, but the rules for netCDF4 are similar): attr = name nc_type nelems [values ...] nc_type = NC_BYTE | NC_CHAR | NC_SHORT | NC_INT | NC_FLOAT | NC_DOUBLE

In practice, I believe Python APIs (including xarray's various netCDF backends) usually decode single values to scalars.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Serializing attrs 270440308

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 249.044ms · About: xarray-datasette