home / github

Menu
  • Search all tables
  • GraphQL API

issue_comments

Table actions
  • GraphQL API for issue_comments

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

  • dcherian 2
  • shoyer 1
  • max-sixty 1
  • mathause 1

issue 1

  • Changing dtype on v0.13.0 causes Dataset attributes to be lost · 5 ✖

author_association 1

  • MEMBER · 5 ✖
id html_url issue_url node_id user created_at updated_at ▲ author_association body reactions performed_via_github_app issue
750934788 https://github.com/pydata/xarray/issues/3348#issuecomment-750934788 https://api.github.com/repos/pydata/xarray/issues/3348 MDEyOklzc3VlQ29tbWVudDc1MDkzNDc4OA== mathause 10194086 2020-12-24T17:47:34Z 2020-12-24T17:47:34Z MEMBER

Yes, this is fixed so I am closing. Thanks for noting @rhkleijn

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Changing dtype on v0.13.0 causes Dataset attributes to be lost 499196320
536118536 https://github.com/pydata/xarray/issues/3348#issuecomment-536118536 https://api.github.com/repos/pydata/xarray/issues/3348 MDEyOklzc3VlQ29tbWVudDUzNjExODUzNg== shoyer 1217238 2019-09-27T22:43:48Z 2019-09-27T22:43:48Z MEMBER

It's also not clear to me how this managed to change/break but I think we should consider it a bug.

I agree that the right fix is to write an explicit astype method, but I don't think there's a good reason for keep_attrs=False in this case. astype isn't really changing the data, just changing how the data is represented so I think it makes sense to always preserve attributes.

{
    "total_count": 1,
    "+1": 1,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Changing dtype on v0.13.0 causes Dataset attributes to be lost 499196320
535999921 https://github.com/pydata/xarray/issues/3348#issuecomment-535999921 https://api.github.com/repos/pydata/xarray/issues/3348 MDEyOklzc3VlQ29tbWVudDUzNTk5OTkyMQ== max-sixty 5635139 2019-09-27T16:01:57Z 2019-09-27T16:01:57Z MEMBER

Should we switch keep_attrs to True by default or be determined by the global keep_attrs setting? (also I don't know why this worked in 0.12.1)

Do we have a view that this should be False by default, or is it the case for historical reasons?

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Changing dtype on v0.13.0 causes Dataset attributes to be lost 499196320
535981805 https://github.com/pydata/xarray/issues/3348#issuecomment-535981805 https://api.github.com/repos/pydata/xarray/issues/3348 MDEyOklzc3VlQ29tbWVudDUzNTk4MTgwNQ== dcherian 2448579 2019-09-27T15:13:32Z 2019-09-27T15:13:32Z MEMBER

I guess the simpler solution is to just add an astype method to Dataset and specify keep_attrs=True like

https://github.com/pydata/xarray/blob/6ece6a1cf424c3080e216fad8fc8058d3b70aadc/xarray/core/dataset.py#L5062-L5063

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Changing dtype on v0.13.0 causes Dataset attributes to be lost 499196320
535979151 https://github.com/pydata/xarray/issues/3348#issuecomment-535979151 https://api.github.com/repos/pydata/xarray/issues/3348 MDEyOklzc3VlQ29tbWVudDUzNTk3OTE1MQ== dcherian 2448579 2019-09-27T15:06:47Z 2019-09-27T15:06:47Z MEMBER

Should we switch keep_attrs to True by default or be determined by the global keep_attrs setting? (also I don't know why this worked in 0.12.1)

https://github.com/pydata/xarray/blob/6ece6a1cf424c3080e216fad8fc8058d3b70aadc/xarray/core/dataset.py#L4388-L4401

The more general solution for DataArrays is to finish up #2070 (see also #2049). @robbibt are you you up for doing this?

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Changing dtype on v0.13.0 causes Dataset attributes to be lost 499196320

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