home / github

Menu
  • GraphQL API
  • Search all tables

issue_comments

Table actions
  • GraphQL API for issue_comments

3 rows where author_association = "MEMBER" and issue = 1029088776 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

  • benbovy 2
  • shoyer 1

issue 1

  • Need a way to speciefy the names of coordinates from the indices which droped by DataArray.reset_index. · 3 ✖

author_association 1

  • MEMBER · 3 ✖
id html_url issue_url node_id user created_at updated_at ▲ author_association body reactions performed_via_github_app issue
1260497579 https://github.com/pydata/xarray/issues/5874#issuecomment-1260497579 https://api.github.com/repos/pydata/xarray/issues/5874 IC_kwDOAMm_X85LIaqr benbovy 4160723 2022-09-28T07:26:55Z 2022-09-28T07:26:55Z MEMBER

Closed in #6971.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Need a way to speciefy the names of coordinates from the indices which droped by DataArray.reset_index. 1029088776
1259346181 https://github.com/pydata/xarray/issues/5874#issuecomment-1259346181 https://api.github.com/repos/pydata/xarray/issues/5874 IC_kwDOAMm_X85LEBkF benbovy 4160723 2022-09-27T11:11:07Z 2022-09-27T11:11:07Z MEMBER

The desired behavior is the possibility to set x_str as an index without changing its name.

This will be enabled by #6971, hopefully merged before the next release:

```python arr = arr.set_xindex("x_str").set_xindex("x_num")

arr

<xarray.DataArray (t: 4, x: 4)>

array([[ 0, 1, 2, 3],

[ 4, 5, 6, 7],

[ 8, 9, 10, 11],

[12, 13, 14, 15]])

Coordinates:

* x_str (x) <U1 'a' 'b' 'c' 'd'

* x_num (x) int64 1 2 3 4

Dimensions without coordinates: t, x

arr.sel(x_str="a")

<xarray.DataArray (t: 4)>

array([ 0, 4, 8, 12])

Coordinates:

x_str <U1 'a'

x_num int64 1

Dimensions without coordinates: t

arr.sel(x_num=1)

<xarray.DataArray (t: 4)>

array([ 0, 4, 8, 12])

Coordinates:

x_str <U1 'a'

x_num int64 1

Dimensions without coordinates: t

```

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Need a way to speciefy the names of coordinates from the indices which droped by DataArray.reset_index. 1029088776
945948151 https://github.com/pydata/xarray/issues/5874#issuecomment-945948151 https://api.github.com/repos/pydata/xarray/issues/5874 IC_kwDOAMm_X844YgX3 shoyer 1217238 2021-10-18T16:25:33Z 2021-10-18T16:25:33Z MEMBER

You currently need reset_index because Xarray requires that indexes match a dimension.

We plan to relax this constraint soon, as part of the ongoing "Explicit index" refactor being led by @benbovy :

  • https://github.com/pydata/xarray/issues/1603
  • https://github.com/pydata/xarray/projects/1

The desired behavior is the possibility to set x_str as an index without changing its name.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Need a way to speciefy the names of coordinates from the indices which droped by DataArray.reset_index. 1029088776

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