issue_comments
16 rows where issue = 326205036 sorted by updated_at descending
This data as json, CSV (advanced)
Suggested facets: body, created_at (date), updated_at (date)
issue 1
- How should Dataset.update() handle conflicting coordinates? · 16 ✖
id | html_url | issue_url | node_id | user | created_at | updated_at ▲ | author_association | body | reactions | performed_via_github_app | issue |
---|---|---|---|---|---|---|---|---|---|---|---|
1113990595 | https://github.com/pydata/xarray/issues/2180#issuecomment-1113990595 | https://api.github.com/repos/pydata/xarray/issues/2180 | IC_kwDOAMm_X85CZiXD | stale[bot] 26384082 | 2022-04-30T13:37:47Z | 2022-04-30T13:37:47Z | NONE | In order to maintain a list of currently relevant issues, we mark issues as stale after a period of inactivity If this issue remains relevant, please comment here or remove the |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
How should Dataset.update() handle conflicting coordinates? 326205036 | |
619325660 | https://github.com/pydata/xarray/issues/2180#issuecomment-619325660 | https://api.github.com/repos/pydata/xarray/issues/2180 | MDEyOklzc3VlQ29tbWVudDYxOTMyNTY2MA== | stale[bot] 26384082 | 2020-04-25T05:39:47Z | 2020-04-25T05:39:47Z | NONE | In order to maintain a list of currently relevant issues, we mark issues as stale after a period of inactivity If this issue remains relevant, please comment here or remove the |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
How should Dataset.update() handle conflicting coordinates? 326205036 | |
391932929 | https://github.com/pydata/xarray/issues/2180#issuecomment-391932929 | https://api.github.com/repos/pydata/xarray/issues/2180 | MDEyOklzc3VlQ29tbWVudDM5MTkzMjkyOQ== | shoyer 1217238 | 2018-05-25T03:46:40Z | 2018-05-25T03:46:40Z | MEMBER | Looking at @crusaderky's example of different coordinate labels again, I finally remember why it works this way. The logic of This is pretty clearly expressed in the original code:
In @crusaderky's example with For most use cases, the true outer join makes more sense -- which is why |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
How should Dataset.update() handle conflicting coordinates? 326205036 | |
391919607 | https://github.com/pydata/xarray/issues/2180#issuecomment-391919607 | https://api.github.com/repos/pydata/xarray/issues/2180 | MDEyOklzc3VlQ29tbWVudDM5MTkxOTYwNw== | fujiisoup 6815844 | 2018-05-25T02:06:47Z | 2018-05-25T02:19:45Z | MEMBER | For referene the original issue in #2068 was ```python In [4]: ds = xr.Dataset() ...: ds.coords['source'] = (['a', 'b', 'c'], np.random.random((2, 3, 4))) ...: ds.coords['unrelated'] = (['a', 'c'], np.random.random((2, 4))) ...: ds ...: Out[4]: <xarray.Dataset> Dimensions: (a: 2, b: 3, c: 4) Coordinates: source (a, b, c) float64 0.4158 0.07152 0.4258 0.4382 0.6616 0.142 ... unrelated (a, c) float64 0.9318 0.03723 0.4226 0.9472 0.8753 0.7022 ... Dimensions without coordinates: a, b, c Data variables: empty In [5]: ds['dest-2'] = xr.ones_like(ds['source'].isel(c=0))
...: ds
...:
Out[5]:
<xarray.Dataset>
Dimensions: (a: 2, b: 3)
Coordinates:
source (a, b) float64 0.4158 0.6616 0.1583 0.7821 0.221 0.2555
unrelated (a) float64 0.9318 0.8753
Dimensions without coordinates: a, b
Data variables:
dest-2 (a, b) float64 1.0 1.0 1.0 1.0 1.0 1.0
The previous behavior might be OK as long as EDIT:
I still feel something strange both in the previous and current behavior of |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
How should Dataset.update() handle conflicting coordinates? 326205036 | |
391915849 | https://github.com/pydata/xarray/issues/2180#issuecomment-391915849 | https://api.github.com/repos/pydata/xarray/issues/2180 | MDEyOklzc3VlQ29tbWVudDM5MTkxNTg0OQ== | fujiisoup 6815844 | 2018-05-25T01:41:27Z | 2018-05-25T01:41:27Z | MEMBER | Thanks, @crusaderky. The first behavior you pointed out is a bug I think. I raised an issue in #2184, and maybe it should be discussed there. For the second example,
I agree with this. |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
How should Dataset.update() handle conflicting coordinates? 326205036 | |
391914654 | https://github.com/pydata/xarray/issues/2180#issuecomment-391914654 | https://api.github.com/repos/pydata/xarray/issues/2180 | MDEyOklzc3VlQ29tbWVudDM5MTkxNDY1NA== | crusaderky 6213168 | 2018-05-25T01:32:51Z | 2018-05-25T01:33:25Z | MEMBER |
Consider this example:
I think this should be a right join. I alway think of non-index coords as N-to-1 properties of the index. For example,
|
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
How should Dataset.update() handle conflicting coordinates? 326205036 | |
391910682 | https://github.com/pydata/xarray/issues/2180#issuecomment-391910682 | https://api.github.com/repos/pydata/xarray/issues/2180 | MDEyOklzc3VlQ29tbWVudDM5MTkxMDY4Mg== | fujiisoup 6815844 | 2018-05-25T01:05:13Z | 2018-05-25T01:30:47Z | MEMBER |
Agreed. ~@shoyer, how do you think about the current EDIT: I did not noticed the above comment. I will raise an issue for this. |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
How should Dataset.update() handle conflicting coordinates? 326205036 | |
391908821 | https://github.com/pydata/xarray/issues/2180#issuecomment-391908821 | https://api.github.com/repos/pydata/xarray/issues/2180 | MDEyOklzc3VlQ29tbWVudDM5MTkwODgyMQ== | shoyer 1217238 | 2018-05-25T00:50:58Z | 2018-05-25T00:51:10Z | MEMBER | @crusaderky this behavior you show is indeed really strange. I don't know why alignment of dimensions works that way currently. |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
How should Dataset.update() handle conflicting coordinates? 326205036 | |
391908588 | https://github.com/pydata/xarray/issues/2180#issuecomment-391908588 | https://api.github.com/repos/pydata/xarray/issues/2180 | MDEyOklzc3VlQ29tbWVudDM5MTkwODU4OA== | shoyer 1217238 | 2018-05-25T00:49:15Z | 2018-05-25T00:49:15Z | MEMBER | OK, looking at this more carefully So maybe we can leave the current behavior as is for now (but remove the warning). What did change is how we handle conflicts in |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
How should Dataset.update() handle conflicting coordinates? 326205036 | |
391908483 | https://github.com/pydata/xarray/issues/2180#issuecomment-391908483 | https://api.github.com/repos/pydata/xarray/issues/2180 | MDEyOklzc3VlQ29tbWVudDM5MTkwODQ4Mw== | fujiisoup 6815844 | 2018-05-25T00:48:27Z | 2018-05-25T00:48:27Z | MEMBER | 2087 changed the second behavior.```python In [1]: import xarray ...: ...: fridge = xarray.Dataset( ...: data_vars={ ...: 'var1': ('fruit', [10]), ...: }, ...: coords={ ...: 'fruit': ('fruit', [1]), ...: 'quality': ('fruit', ['Red Velvet']), ...: }) ...: shopping = xarray.Dataset( ...: data_vars={ ...: 'var1': ('fruit', [20]), ...: }, ...: coords={ ...: 'fruit': ('fruit', [1]), ...: 'quality': ('fruit', ['Tangerine']), ...: }) ...: ...: fridge['var1'] = shopping['var1'] ...: ``` with v10.3
|
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
How should Dataset.update() handle conflicting coordinates? 326205036 | |
391905598 | https://github.com/pydata/xarray/issues/2180#issuecomment-391905598 | https://api.github.com/repos/pydata/xarray/issues/2180 | MDEyOklzc3VlQ29tbWVudDM5MTkwNTU5OA== | fujiisoup 6815844 | 2018-05-25T00:26:59Z | 2018-05-25T00:26:59Z | MEMBER | I got cofused... I was wrong. I thought it would be an outer joing I think we need to discuss two issues here separately.
1. If there are conflicts in |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
How should Dataset.update() handle conflicting coordinates? 326205036 | |
391904059 | https://github.com/pydata/xarray/issues/2180#issuecomment-391904059 | https://api.github.com/repos/pydata/xarray/issues/2180 | MDEyOklzc3VlQ29tbWVudDM5MTkwNDA1OQ== | crusaderky 6213168 | 2018-05-25T00:15:55Z | 2018-05-25T00:15:55Z | MEMBER | Then I'm not sure I understand the change:
|
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
How should Dataset.update() handle conflicting coordinates? 326205036 | |
391902317 | https://github.com/pydata/xarray/issues/2180#issuecomment-391902317 | https://api.github.com/repos/pydata/xarray/issues/2180 | MDEyOklzc3VlQ29tbWVudDM5MTkwMjMxNw== | fujiisoup 6815844 | 2018-05-25T00:04:58Z | 2018-05-25T00:04:58Z | MEMBER | I think we should discuss dimension coordinte and non-dimenson coordinate separately. I guess @shoyer meant non-dimenson coordinate here. For dimension coordinte, it is always outer join, if I understand correctly. |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
How should Dataset.update() handle conflicting coordinates? 326205036 | |
391900937 | https://github.com/pydata/xarray/issues/2180#issuecomment-391900937 | https://api.github.com/repos/pydata/xarray/issues/2180 | MDEyOklzc3VlQ29tbWVudDM5MTkwMDkzNw== | crusaderky 6213168 | 2018-05-24T23:56:55Z | 2018-05-24T23:56:55Z | MEMBER | I'm of the strong opinion that all joins should be outer joins unless the user explicitly says otherwise, as it's the approach least prone to do damage. I would humbly suggest considering the change for a future major release (0.11 / 0.12), with several minor releases before that printing futurewarnings. This said, I think that changing from a right join (0.10.3) to a left join (0.10.4) will only cause breakages without providing any actual benefit in terms of user-friendliness, so we should retain the previous behaviour. A right join vaguely makes more sense IMHO as it follows the general phylosophy of |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
How should Dataset.update() handle conflicting coordinates? 326205036 | |
391899432 | https://github.com/pydata/xarray/issues/2180#issuecomment-391899432 | https://api.github.com/repos/pydata/xarray/issues/2180 | MDEyOklzc3VlQ29tbWVudDM5MTg5OTQzMg== | fujiisoup 6815844 | 2018-05-24T23:47:52Z | 2018-05-24T23:49:15Z | MEMBER | I think Our |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
How should Dataset.update() handle conflicting coordinates? 326205036 | |
391898293 | https://github.com/pydata/xarray/issues/2180#issuecomment-391898293 | https://api.github.com/repos/pydata/xarray/issues/2180 | MDEyOklzc3VlQ29tbWVudDM5MTg5ODI5Mw== | shoyer 1217238 | 2018-05-24T23:40:34Z | 2018-05-24T23:40:41Z | MEMBER | cc @fujiisoup @crusaderky |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
How should Dataset.update() handle conflicting coordinates? 326205036 |
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 4