home / github

Menu
  • Search all tables
  • GraphQL API

issue_comments

Table actions
  • GraphQL API for issue_comments

3 rows where issue = 429572364 sorted by updated_at descending

✎ View and edit SQL

This data as json, CSV (advanced)

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

user 3

  • shoyer 1
  • arkanoid87 1
  • dcherian 1

author_association 2

  • MEMBER 2
  • NONE 1

issue 1

  • netCDF4: support for structured arrays as attribute values; serialize as "compound types" · 3 ✖
id html_url issue_url node_id user created_at updated_at ▲ author_association body reactions performed_via_github_app issue
1091874142 https://github.com/pydata/xarray/issues/2868#issuecomment-1091874142 https://api.github.com/repos/pydata/xarray/issues/2868 IC_kwDOAMm_X85BFK1e dcherian 2448579 2022-04-07T15:23:05Z 2022-04-07T15:23:25Z MEMBER

From this comment it seems like the value should be a numpy structured array instead of a dict. Can you try that instead?

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  netCDF4: support for structured arrays as attribute values; serialize as "compound types" 429572364
1091870231 https://github.com/pydata/xarray/issues/2868#issuecomment-1091870231 https://api.github.com/repos/pydata/xarray/issues/2868 IC_kwDOAMm_X85BFJ4X arkanoid87 1446586 2022-04-07T15:19:27Z 2022-04-07T15:19:27Z NONE

It is supporter in netcdf4

Compound types should be used. See: https://github.com/Unidata/netcdf4-python/issues/905

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  netCDF4: support for structured arrays as attribute values; serialize as "compound types" 429572364
480375712 https://github.com/pydata/xarray/issues/2868#issuecomment-480375712 https://api.github.com/repos/pydata/xarray/issues/2868 MDEyOklzc3VlQ29tbWVudDQ4MDM3NTcxMg== shoyer 1217238 2019-04-05T18:22:32Z 2019-04-05T18:22:32Z MEMBER

netCDF4-Python doesn't seem to support this: ``` In [1]: import netCDF4

In [2]: f = netCDF4.Dataset('test.nc', 'w')

In [3]: f.foo = {'bar': 2}

TypeError Traceback (most recent call last) <ipython-input-4-45a6eb241d31> in <module>() ----> 1 f.foo = {'bar': 2}

netCDF4/_netCDF4.pyx in netCDF4._netCDF4.Dataset.setattr()

netCDF4/_netCDF4.pyx in netCDF4._netCDF4.Dataset.setncattr()

netCDF4/_netCDF4.pyx in netCDF4._netCDF4._set_att()

TypeError: illegal data type for attribute b'foo', must be one of dict_keys(['S1', 'i1', 'u1', 'i2', 'u2', 'i4', 'u4', 'i8', 'u8', 'f4', 'f8']), got O ```

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  netCDF4: support for structured arrays as attribute values; serialize as "compound types" 429572364

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