issue_comments
1 row where author_association = "NONE", issue = 1611701140 and user = 127195910 sorted by updated_at descending
This data as json, CSV (advanced)
Suggested facets: created_at (date), updated_at (date)
issue 1
- xr.merge with compat="minimal" returns corrupted Dataset and causes __len__ to return wrong and possibly negative values. · 1 ✖
id | html_url | issue_url | node_id | user | created_at | updated_at ▲ | author_association | body | reactions | performed_via_github_app | issue |
---|---|---|---|---|---|---|---|---|---|---|---|
1460850301 | https://github.com/pydata/xarray/issues/7588#issuecomment-1460850301 | https://api.github.com/repos/pydata/xarray/issues/7588 | IC_kwDOAMm_X85XEs59 | Karimat22 127195910 | 2023-03-08T20:42:10Z | 2023-03-14T19:43:51Z | NONE | When using xr.merge with compat='minimal', the resulting Dataset may have unexpected behavior, including causing len to return wrong and possibly negative values. This is because compat='minimal' mode allows for the merging of datasets with non-matching dimensions and coordinates. When this happens, the merged dataset may contain "empty" dimensions or coordinates that have lost their original values and attributes. To avoid this issue, you can either use compat='override' mode, which will overwrite conflicting dimensions and coordinates, or manually align and concatenate the datasets before merging them. Here's an example of how to manually align and concatenate two datasets before merging them: import xarray as xr create two sample datasets with different dimensionsds1 = xr.Dataset({'foo': (['x', 'y'], [[1, 2], [3, 4]])}, coords={'x': [0, 1], 'y': [0, 1]}) ds2 = xr.Dataset({'bar': (['x', 'z'], [[5, 6], [7, 8]])}, coords={'x': [0, 1], 'z': [0, 1]}) align and concatenate the datasets along the 'x' dimensionds1_aligned = ds1.sel(x=slice(None, 1)) ds2_aligned = ds2.sel(x=slice(1, None)) merged = xr.merge([ds1_aligned, ds2_aligned]) In this example, we first slice each dataset to remove any non-matching dimensions and coordinates, and then concatenate them along the 'x' dimension. Finally, we merge the aligned datasets to create a single merged dataset without any corrupted dimensions or coordinates. |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
xr.merge with compat="minimal" returns corrupted Dataset and causes __len__ to return wrong and possibly negative values. 1611701140 |
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