issue_comments
7 rows where author_association = "MEMBER" and issue = 494210818 sorted by updated_at descending
This data as json, CSV (advanced)
Suggested facets: reactions, created_at (date), updated_at (date)
issue 1
- convert DataArray to DataSet before combine · 7 ✖
id | html_url | issue_url | node_id | user | created_at | updated_at ▲ | author_association | body | reactions | performed_via_github_app | issue |
---|---|---|---|---|---|---|---|---|---|---|---|
652363949 | https://github.com/pydata/xarray/pull/3312#issuecomment-652363949 | https://api.github.com/repos/pydata/xarray/issues/3312 | MDEyOklzc3VlQ29tbWVudDY1MjM2Mzk0OQ== | TomNicholas 35968931 | 2020-07-01T11:30:44Z | 2020-07-01T11:30:44Z | MEMBER | @shoyer I just re-encountered this bug whilst doing actual work - I would like to get it fixed, but need your input. In particular on
(if this is particularly complex we could perhaps discuss it in the bi-weekly meeting?) |
{ "total_count": 1, "+1": 1, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
convert DataArray to DataSet before combine 494210818 | |
568789721 | https://github.com/pydata/xarray/pull/3312#issuecomment-568789721 | https://api.github.com/repos/pydata/xarray/issues/3312 | MDEyOklzc3VlQ29tbWVudDU2ODc4OTcyMQ== | TomNicholas 35968931 | 2019-12-24T18:39:21Z | 2019-12-24T18:39:21Z | MEMBER | Also separately I think I've discovered a related weird bug:
|
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
convert DataArray to DataSet before combine 494210818 | |
568789678 | https://github.com/pydata/xarray/pull/3312#issuecomment-568789678 | https://api.github.com/repos/pydata/xarray/issues/3312 | MDEyOklzc3VlQ29tbWVudDU2ODc4OTY3OA== | TomNicholas 35968931 | 2019-12-24T18:39:01Z | 2019-12-24T18:39:01Z | MEMBER |
I suppose so, but this seems like an odd way to handle it to me. You're throwing away data (the names) which in other circumstances would be used.
Do we want consistency with arithmetic, or consistency with Let me try to clarify by summarizing. Currently,
However, as shown above, This is all different to the arithmetic logic, but I think it makes way more intuitive sense. It's okay for arithmetic and combining logic to be different, as they are used in different contexts and it's an unambiguous delineation to ignore names in arithmetic, and use them in top-level combining functions. Also, to complete the consistency of the "combining" functions, I think we should make In short: I propose that "combining" isn't arithmetic, and should be treated separately (and consistently across all types of combine functions). |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
convert DataArray to DataSet before combine 494210818 | |
535264571 | https://github.com/pydata/xarray/pull/3312#issuecomment-535264571 | https://api.github.com/repos/pydata/xarray/issues/3312 | MDEyOklzc3VlQ29tbWVudDUzNTI2NDU3MQ== | shoyer 1217238 | 2019-09-25T23:30:54Z | 2019-09-25T23:30:54Z | MEMBER |
If we gave all the DataArray objects the same name when converted into Dataset objects, then I think the result could always be a single DataArray? This would be consistent with how we do arithmetic with a DataArrays: the names get ignored, and then we assign a name to the result only if there are no conflicting names on the inputs. |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
convert DataArray to DataSet before combine 494210818 | |
535056774 | https://github.com/pydata/xarray/pull/3312#issuecomment-535056774 | https://api.github.com/repos/pydata/xarray/issues/3312 | MDEyOklzc3VlQ29tbWVudDUzNTA1Njc3NA== | dcherian 2448579 | 2019-09-25T14:42:58Z | 2019-09-25T14:42:58Z | MEMBER |
I agree.
I think the simplest solution is to always return |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
convert DataArray to DataSet before combine 494210818 | |
535013577 | https://github.com/pydata/xarray/pull/3312#issuecomment-535013577 | https://api.github.com/repos/pydata/xarray/issues/3312 | MDEyOklzc3VlQ29tbWVudDUzNTAxMzU3Nw== | TomNicholas 35968931 | 2019-09-25T13:08:00Z | 2019-09-25T13:27:18Z | MEMBER |
I don't think so. Even for an input of only DataArrays, depending on the actual names and values in the DataArrays, the result of a combine could be a DataArray or a Dataset. So would it not it be simpler to 1) Promote all inputs to Datasets (or @friedrichknuth's "dict_like_objects") 2) Do the combining 3) If the result has only a single variable then demote from Dataset to DataArray? That way the result is always the simplest object that can hold the result of combining that particular set of inputs, and the combining internals only have to handle DataSet objects. EDIT: Oh wait but that won't work in the case of unnamed DataArrays right?
EDIT2: Actually |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
convert DataArray to DataSet before combine 494210818 | |
532968459 | https://github.com/pydata/xarray/pull/3312#issuecomment-532968459 | https://api.github.com/repos/pydata/xarray/issues/3312 | MDEyOklzc3VlQ29tbWVudDUzMjk2ODQ1OQ== | shoyer 1217238 | 2019-09-19T05:11:06Z | 2019-09-19T05:11:06Z | MEMBER | Thinking about the interface here, would it make sense for the combine methods to always return an object of the same type as the inputs? E.g., list of DataArray -> DataArray, list of Dataset -> Dataset? Effectively, we would disable the automatic merging when working with DataArray objects and only do concat (ignoring DataArray names). I guess the confusing part is that in concat we always return the same type as the inputs, vs merge where we always return a Dataset. And of course, combine can do both! |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
convert DataArray to DataSet before combine 494210818 |
Advanced export
JSON shape: default, array, newline-delimited, object
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]);
user 3