home / github

Menu
  • Search all tables
  • GraphQL API

issue_comments

Table actions
  • GraphQL API for issue_comments

2 rows where issue = 1325761961 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 1
  • ZhaJiMan 1

author_association 2

  • MEMBER 1
  • NONE 1

issue 1

  • The Dataset.rename_dims creates a new dimension without coordinates · 2 ✖
id html_url issue_url node_id user created_at updated_at ▲ author_association body reactions performed_via_github_app issue
1202535745 https://github.com/pydata/xarray/issues/6867#issuecomment-1202535745 https://api.github.com/repos/pydata/xarray/issues/6867 IC_kwDOAMm_X85HrT1B benbovy 4160723 2022-08-02T13:17:09Z 2022-08-02T20:23:32Z MEMBER

Hi @ZhaJiMan, this topic has been brought up several times recently (see, e.g., #4825, #6607, #6704).

I can't tell much about your latitude / longitude case without a more detailed example, but looking at your simple case the result is the one I would expect, i.e., rename_dims renames only the dimension (not the coordinate).

Note that with version 2022.6.0, the space coordinate keeps its index so that you can still use it with .sel():

```python renamed = ds.rename_dims(space='label'))

renamed

<xarray.Dataset>

Dimensions: (label: 3)

Coordinates:

* space (label) <U1 'a' 'b' 'c'

Dimensions without coordinates: label

Data variables:

x (label) int64 1 2 3

renamed.sel(space="a")

<xarray.Dataset>

Dimensions: ()

Coordinates:

space <U1 'a'

Data variables:

x int64 1

```

Given that we can now use non-dimension coordinates for data selection, we should probably remove the "Dimensions without coordinates: label" in the repr for such case, as it becomes rather confusing. We should probably change that line to something like "Dimensions without index" or "Dimensions without indexed coordinates" or address that in the indexes repr section (#6795).

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  The Dataset.rename_dims creates a new dimension without coordinates 1325761961
1202611231 https://github.com/pydata/xarray/issues/6867#issuecomment-1202611231 https://api.github.com/repos/pydata/xarray/issues/6867 IC_kwDOAMm_X85HrmQf ZhaJiMan 54382968 2022-08-02T13:49:35Z 2022-08-02T13:49:35Z NONE

Thanks for detailed explanation and informing of changes in recent versions. Although this behaviour still confuses me a lot, I'll take some time reading those mentioned issues.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  The Dataset.rename_dims creates a new dimension without coordinates 1325761961

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