home / github

Menu
  • Search all tables
  • GraphQL API

issue_comments

Table actions
  • GraphQL API for issue_comments

6 rows where issue = 1624560934 sorted by updated_at descending

✎ View and edit SQL

This data as json, CSV (advanced)

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

user 4

  • kmuehlbauer 3
  • dcherian 1
  • keewis 1
  • AlxLhrNc 1

author_association 2

  • MEMBER 5
  • NONE 1

issue 1

  • .loc[] cannot find a value that .sel() can find without problem · 6 ✖
id html_url issue_url node_id user created_at updated_at ▲ author_association body reactions performed_via_github_app issue
1527541305 https://github.com/pydata/xarray/issues/7630#issuecomment-1527541305 https://api.github.com/repos/pydata/xarray/issues/7630 IC_kwDOAMm_X85bDG45 kmuehlbauer 5821660 2023-04-28T13:09:22Z 2023-04-28T13:09:22Z MEMBER

@AlxndrLhr I suppose your original issue is resolved. Please reopen or create a new issue if you still have problems with this.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  .loc[] cannot find a value that .sel() can find without problem 1624560934
1479748005 https://github.com/pydata/xarray/issues/7630#issuecomment-1479748005 https://api.github.com/repos/pydata/xarray/issues/7630 IC_kwDOAMm_X85YMyml dcherian 2448579 2023-03-22T15:10:54Z 2023-03-22T15:10:54Z MEMBER

Did you try to assign to nc? If so, then yes expand_dims creates a "view" so no new memory is used up. This works really well for read-only usecases. To write to that array, you'll need to copy.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  .loc[] cannot find a value that .sel() can find without problem 1624560934
1478617771 https://github.com/pydata/xarray/issues/7630#issuecomment-1478617771 https://api.github.com/repos/pydata/xarray/issues/7630 IC_kwDOAMm_X85YIeqr AlxLhrNc 90059220 2023-03-21T21:39:22Z 2023-03-21T21:39:22Z NONE

Thanks all, but it returns the ValueError: output array is read-only. Apparently, this is caused by .expand_dims() (see https://github.com/pydata/xarray/issues/3813). The work-around seems to be python nc = nc.expand_dims(time=times_).copy() Though I have no idea why.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  .loc[] cannot find a value that .sel() can find without problem 1624560934
1469754531 https://github.com/pydata/xarray/issues/7630#issuecomment-1469754531 https://api.github.com/repos/pydata/xarray/issues/7630 IC_kwDOAMm_X85Xmqyj kmuehlbauer 5821660 2023-03-15T10:33:43Z 2023-03-15T10:33:43Z MEMBER

Everyday something new to learn, thanks @keewis!

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  .loc[] cannot find a value that .sel() can find without problem 1624560934
1469714769 https://github.com/pydata/xarray/issues/7630#issuecomment-1469714769 https://api.github.com/repos/pydata/xarray/issues/7630 IC_kwDOAMm_X85XmhFR keewis 14808389 2023-03-15T10:07:06Z 2023-03-15T10:07:06Z MEMBER

you can also pass a dict, so nc.loc[{"time": dt}] or nc.loc[dict(time=dt)] should work as well

{
    "total_count": 1,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 1,
    "rocket": 0,
    "eyes": 0
}
  .loc[] cannot find a value that .sel() can find without problem 1624560934
1469497104 https://github.com/pydata/xarray/issues/7630#issuecomment-1469497104 https://api.github.com/repos/pydata/xarray/issues/7630 IC_kwDOAMm_X85Xlr8Q kmuehlbauer 5821660 2023-03-15T07:38:13Z 2023-03-15T07:38:13Z MEMBER

@AlxndrLhr .loc is positional. The correct invocation would be:

python nc.loc[dt]

This would try to locate dt in the first dimension of nc.

If you would append your time-dimension to the end, this would look like:

```python nc = nc.expand_dims(time=times_, axis=-1) nc.loc[..., dt]

or

nc.loc[:, :, dt] ```

A good first read: https://docs.xarray.dev/en/stable/user-guide/indexing.html#indexing-and-selecting-data

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  .loc[] cannot find a value that .sel() can find without problem 1624560934

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