home / github

Menu
  • GraphQL API
  • Search all tables

issue_comments

Table actions
  • GraphQL API for issue_comments

2 rows where author_association = "MEMBER", issue = 1124879701 and user = 10194086 sorted by updated_at descending

✎ View and edit SQL

This data as json, CSV (advanced)

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

user 1

  • mathause · 2 ✖

issue 1

  • Type NDArrayMixin · 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
1031635633 https://github.com/pydata/xarray/pull/6239#issuecomment-1031635633 https://api.github.com/repos/pydata/xarray/issues/6239 IC_kwDOAMm_X849fYKx mathause 10194086 2022-02-07T16:04:31Z 2022-02-07T16:04:31Z MEMBER

Define

```python

class BackendArray(...):

 @property 
 def shape(self) -> tuple(int, ...): 
     return self._shape

```

and then set

```python class SpecificBackend(BackendArray):

def __init__(self, variable_name, datastore):
    self._shape = array.shape

```

but that might affect downstream libraries.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Type NDArrayMixin 1124879701
1031335864 https://github.com/pydata/xarray/pull/6239#issuecomment-1031335864 https://api.github.com/repos/pydata/xarray/issues/6239 IC_kwDOAMm_X849eO-4 mathause 10194086 2022-02-07T10:57:41Z 2022-02-07T10:57:41Z MEMBER

I think BackendArray (and it's parents) did not define shape as an attribute. So one option is to revert this change.


The other is to unify how the backends assign shape and dtype? They seem be to defined very differently depending on the backend.

https://github.com/pydata/xarray/blob/d47cf0c850cb70429373782b3c1e0329d14fd05a/xarray/backends/pydap_.py#L28-L30

https://github.com/pydata/xarray/blob/d47cf0c850cb70429373782b3c1e0329d14fd05a/xarray/backends/netCDF4_.py#L59

https://github.com/pydata/xarray/blob/d47cf0c850cb70429373782b3c1e0329d14fd05a/xarray/backends/rasterio_.py#L37

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Type NDArrayMixin 1124879701

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