home / github

Menu
  • GraphQL API
  • Search all tables

issue_comments

Table actions
  • GraphQL API for issue_comments

1 row where issue = 874695249 and user = 10194086 sorted by updated_at descending

✎ View and edit SQL

This data as json, CSV (advanced)

Suggested facets: updated_at (date)

user 1

  • mathause · 1 ✖

issue 1

  • Boolean confusion · 1 ✖

author_association 1

  • MEMBER 1
id html_url issue_url node_id user created_at updated_at ▲ author_association body reactions performed_via_github_app issue
832239085 https://github.com/pydata/xarray/issues/5254#issuecomment-832239085 https://api.github.com/repos/pydata/xarray/issues/5254 MDEyOklzc3VlQ29tbWVudDgzMjIzOTA4NQ== mathause 10194086 2021-05-04T20:55:19Z 2021-05-04T20:55:19Z MEMBER

For completeness, here is the error of the second case:

```python-traceback TypeError Traceback (most recent call last) <ipython-input-5-41afac9c294c> in <module> 1 data = xr.Dataset() 2 data.attrs['bool_type'] = np.True_ ----> 3 data.to_netcdf() ~/code/xarray/xarray/core/dataset.py in to_netcdf(self, path, mode, format, group, engine, encoding, unlimited_dims, compute, invalid_netcdf) 1782 from ..backends.api import to_netcdf 1783 -> 1784 return to_netcdf( 1785 self, 1786 path, ~/code/xarray/xarray/backends/api.py in to_netcdf(dataset, path_or_file, mode, format, group, engine, encoding, unlimited_dims, compute, multifile, invalid_netcdf) 1033 # validate Dataset keys, DataArray names, and attr keys/values 1034 _validate_dataset_names(dataset) -> 1035 _validate_attrs(dataset, invalid_netcdf=invalid_netcdf and engine == "h5netcdf") 1036 1037 try: ~/code/xarray/xarray/backends/api.py in _validate_attrs(dataset, invalid_netcdf) 170 # Check attrs on the dataset itself 171 for k, v in dataset.attrs.items(): --> 172 check_attr(k, v, valid_types) 173 174 # Check attrs on each variable within the dataset ~/code/xarray/xarray/backends/api.py in check_attr(name, value, valid_types) 162 163 if not isinstance(value, valid_types): --> 164 raise TypeError( 165 f"Invalid value for attr {name!r}: {value!r}. For serialization to " 166 "netCDF files, its value must be of one of the following types: " TypeError: Invalid value for attr 'bool_type': True. For serialization to netCDF files, its value must be of one of the following types: str, Number, ndarray, number, list, tuple ```

Can you give some more details. The only way I managed to see the round-trip effect you describe is using engine="h5netcdf", invalid_netcdf=True - is that the combination you are using? For all other combinations it returned 1 (netcdf3) or an error (netcdf4).

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Boolean confusion 874695249

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