home / github

Menu
  • GraphQL API
  • Search all tables

issue_comments

Table actions
  • GraphQL API for issue_comments

3 rows where issue = 955617411 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
  • MaksimZh 1

author_association 2

  • MEMBER 2
  • NONE 1

issue 1

  • Level names in multi-level index are ignored · 3 ✖
id html_url issue_url node_id user created_at updated_at ▲ author_association body reactions performed_via_github_app issue
1259441952 https://github.com/pydata/xarray/issues/5646#issuecomment-1259441952 https://api.github.com/repos/pydata/xarray/issues/5646 IC_kwDOAMm_X85LEY8g benbovy 4160723 2022-09-27T12:34:20Z 2022-09-27T12:34:20Z MEMBER

This is fixed in v2022.6.0

```python xr.testing.assert_allclose(b, c)

AssertionError: Left and right DataArray objects are not close

Coordinates only on the left object:

* x (z) int64 0

* y (z) int64 0

Coordinates only on the right object:

* not-y (z) int64 0

* not-x (z) int64 0

print(b == c, "\n")

ValueError: cannot re-index or align objects with conflicting indexes found for the following coordinates: 'z' (2 conflicting indexes)

Conflicting indexes may occur when

- they relate to different sets of coordinate and/or dimension names

- they don't have the same type

- they may be used to reindex data along common dimensions

```

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Level names in multi-level index are ignored 955617411
889209931 https://github.com/pydata/xarray/issues/5646#issuecomment-889209931 https://api.github.com/repos/pydata/xarray/issues/5646 IC_kwDOAMm_X841AERL benbovy 4160723 2021-07-29T14:48:22Z 2021-07-29T14:48:22Z MEMBER

Thanks for the report @MaksimZh!

With the ongoing index refactoring (see https://github.com/pydata/xarray/projects/1), we will be able to fix that:

  • we plan to drop multi-index "virtual" coordinates and expose levels as "real" coordinates instead
  • pandas indexes are being wrapped in xarray.Index subclasses, so we'll be able to check for the level names when comparing indexes
{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Level names in multi-level index are ignored 955617411
888945107 https://github.com/pydata/xarray/issues/5646#issuecomment-888945107 https://api.github.com/repos/pydata/xarray/issues/5646 IC_kwDOAMm_X840_DnT MaksimZh 688461 2021-07-29T09:08:58Z 2021-07-29T09:08:58Z NONE

Note that comparison of pandas.MultiIndex instances ignores the names. This may be the cause of the issue.

```python import pandas as pd

a = pd.MultiIndex.from_tuples([(0, 0)], names=["x", "y"]) b = pd.MultiIndex.from_tuples([(0, 0)], names=["not-x", "not-y"])

print(a == b) print(a.names == b.names) ```

Output: [ True] False

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Level names in multi-level index are ignored 955617411

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