issue_comments
where issue = 1376109308 and user = 1217238 sorted by updated_at descending
This data as json, CSV (advanced)
Suggested facets: created_at (date)
These facets timed out: author_association
issue 1
- Should Xarray stop doing automatic index-based alignment? · 2 ✖
id | html_url | issue_url | node_id | user | created_at | updated_at ▲ | author_association | body | reactions | performed_via_github_app | issue |
---|---|---|---|---|---|---|---|---|---|---|---|
1249910951 | https://github.com/pydata/xarray/issues/7045#issuecomment-1249910951 | https://api.github.com/repos/pydata/xarray/issues/7045 | IC_kwDOAMm_X85KgCCn | shoyer 1217238 | 2022-09-16T22:26:36Z | 2022-09-16T22:26:36Z | MEMBER | As a concrete example, suppose we have two datasets: 1. Hourly predictions for 10 days 2. Daily observations for a month. ```python import numpy as np import pandas as pd import xarray predictions = xarray.DataArray( np.random.RandomState(0).randn(24*10), {'time': pd.date_range('2022-01-01', '2022-01-11', freq='1h', closed='left')}, ) observations = xarray.DataArray( np.random.RandomState(1).randn(31), {'time': pd.date_range('2022-01-01', '2022-01-31', freq='24h')}, ) ``` Today, if you compare these datasets, they automatically align: ```
With this proposed change, you would get an error, e.g., something like: ```
Instead, you would need to manually align these objects, e.g., with
To (partially) simulate the effect of this change on a codebase today, you could write |
{ "total_count": 1, "+1": 1, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Should Xarray stop doing automatic index-based alignment? 1376109308 | |
1249601076 | https://github.com/pydata/xarray/issues/7045#issuecomment-1249601076 | https://api.github.com/repos/pydata/xarray/issues/7045 | IC_kwDOAMm_X85Ke2Y0 | shoyer 1217238 | 2022-09-16T17:16:52Z | 2022-09-16T17:18:38Z | MEMBER |
The problem is that user expectations are actually rather different for different options:
This would definitely be a step forward! However, it's a tricky nut to crack. We would both need a heuristic for defining Even then, automatic alignment is often problematic, e.g., imagine cases where a coordinate is defined in separate units. |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Should Xarray stop doing automatic index-based alignment? 1376109308 |
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 1