issue_comments
1 row where issue = 499196320 and user = 37239554 sorted by updated_at descending
This data as json, CSV (advanced)
Suggested facets: created_at (date), updated_at (date)
issue 1
- Changing dtype on v0.13.0 causes Dataset attributes to be lost · 1 ✖
id | html_url | issue_url | node_id | user | created_at | updated_at ▲ | author_association | body | reactions | performed_via_github_app | issue |
---|---|---|---|---|---|---|---|---|---|---|---|
586959508 | https://github.com/pydata/xarray/issues/3348#issuecomment-586959508 | https://api.github.com/repos/pydata/xarray/issues/3348 | MDEyOklzc3VlQ29tbWVudDU4Njk1OTUwOA== | davidggphy 37239554 | 2020-02-17T11:52:32Z | 2020-02-17T11:52:32Z | NONE | The problem is still there, as it is quite unexpected. I hacked it using .astype() directly in the np.array Test code```python import xarray as xr da = xr.DataArray( np.arange(56).reshape((7, 8)), coords={ 'x': list('abcdefg'), 'y': 10 * np.arange(8) }, dims=['x', 'y'], attrs={"at_str":"at1_value","at_float":123.,"at_int":123} ) print("Original xr.DataArray") print(f"attrs: {da.attrs}") print(f"dtype: {da.dtype}") print(f"\nAfter casting to int64: {da.astype(np.int64).attrs}" ) print(f"After casting to int32: {da.astype(np.int32).attrs}" ) print(f"After casting to float32: {da.astype(np.float32).attrs}") da.values = da.values.astype(np.float32) print("\nChanging the np.array") print(f"attrs: {da.attrs}") print(f"dtype: {da.dtype}") ``` Output:``` Original xr.DataArray attrs: {'at_str': 'at1_value', 'at_float': 123.0, 'at_int': 123} dtype: int64 After casting to int64: {} After casting to int32: {} After casting to float32: {} Changing the np.array attrs: {'at_str': 'at1_value', 'at_float': 123.0, 'at_int': 123} dtype: float32 ```
|
{ "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
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