home / github

Menu
  • Search all tables
  • GraphQL API

issue_comments

Table actions
  • GraphQL API for issue_comments

4 rows where user = 408363 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 1

  • ignamv · 4 ✖

issue 1

  • Bug in the conversion of Pandas DataFrame into Xarray Dataset . 4

author_association 1

  • NONE 4
id html_url issue_url node_id user created_at updated_at ▲ author_association body reactions performed_via_github_app issue
624652995 https://github.com/pydata/xarray/issues/4027#issuecomment-624652995 https://api.github.com/repos/pydata/xarray/issues/4027 MDEyOklzc3VlQ29tbWVudDYyNDY1Mjk5NQ== ignamv 408363 2020-05-06T13:34:49Z 2020-05-06T13:34:49Z NONE

It looks like this is fixed by 1eedc5c

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Bug in the conversion of Pandas DataFrame into Xarray Dataset . 611879581
624623472 https://github.com/pydata/xarray/issues/4027#issuecomment-624623472 https://api.github.com/repos/pydata/xarray/issues/4027 MDEyOklzc3VlQ29tbWVudDYyNDYyMzQ3Mg== ignamv 408363 2020-05-06T12:36:55Z 2020-05-06T12:36:55Z NONE

Indeed, if I change this line from obj[dim] = (dim, lev) to obj[dim] = (dim, sorted(lev)) then this particular case works: Original Series row column -1 -3 0 -4 1 -2 -3 2 -4 3 dtype: int32 After going to DataArray and back row column -2 -4 3 -3 2 -1 -4 1 -3 0 dtype: int32

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Bug in the conversion of Pandas DataFrame into Xarray Dataset . 611879581
624621313 https://github.com/pydata/xarray/issues/4027#issuecomment-624621313 https://api.github.com/repos/pydata/xarray/issues/4027 MDEyOklzc3VlQ29tbWVudDYyNDYyMTMxMw== ignamv 408363 2020-05-06T12:32:13Z 2020-05-06T12:32:13Z NONE

It looks like the following line causes the input data to be reordered, so it no longer matches the original dimensions:

https://github.com/pydata/xarray/blob/master/xarray/core/dataset.py#L4564

This would probably work if the dimensions were sorted before putting them into the dataset.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Bug in the conversion of Pandas DataFrame into Xarray Dataset . 611879581
624613640 https://github.com/pydata/xarray/issues/4027#issuecomment-624613640 https://api.github.com/repos/pydata/xarray/issues/4027 MDEyOklzc3VlQ29tbWVudDYyNDYxMzY0MA== ignamv 408363 2020-05-06T12:14:47Z 2020-05-06T12:14:47Z NONE

Simpler example, if it's any use:

df = pd.DataFrame(np.arange(4).reshape((2,2)), index=[-1,-2], columns=[-3,-4]) df.index.name, df.columns.name = 'row', 'column' print('Original Series') print(df.stack()) print('After going to DataArray and back') print(df.stack().to_xarray().to_series()) Output Original Series row column -1 -3 0 -4 1 -2 -3 2 -4 3 dtype: int32 After going to DataArray and back row column -1 -3 3 -4 2 -2 -3 1 -4 0 dtype: int32

{
    "total_count": 1,
    "+1": 1,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Bug in the conversion of Pandas DataFrame into Xarray Dataset . 611879581

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