issue_comments
3 rows where issue = 262847801 sorted by updated_at descending
This data as json, CSV (advanced)
Suggested facets: created_at (date), updated_at (date)
issue 1
- Resample interpolate failing on tutorial dataset · 3 ✖
id | html_url | issue_url | node_id | user | created_at | updated_at ▲ | author_association | body | reactions | performed_via_github_app | issue |
---|---|---|---|---|---|---|---|---|---|---|---|
334233567 | https://github.com/pydata/xarray/issues/1605#issuecomment-334233567 | https://api.github.com/repos/pydata/xarray/issues/1605 | MDEyOklzc3VlQ29tbWVudDMzNDIzMzU2Nw== | jhamman 2443309 | 2017-10-04T17:40:00Z | 2017-10-04T17:40:00Z | MEMBER | Okay, I got it now. Consider this example ```Python dates = pd.date_range('2016-01-01', '2016-12-31', freq='D') orig = dates[dates != '2016-02-29'] # drop feb 29 and this example will workorig = dates da = xr.DataArray(np.random.random((len(orig), 2, 3)), dims=('time', 'x', 'y'), coords={'time': orig}) print(da) da.resample(time='1D').interpolate('linear')
Coordinates: * time (time) datetime64[ns] 2016-01-01 2016-01-02 2016-01-03 ... Dimensions without coordinates: x, y AttributeError Traceback (most recent call last) <ipython-input-12-e187a9baeec8> in <module>() 6 print(da) 7 ----> 8 da.resample(time='1d').interpolate('linear') ~/Dropbox/src/xarray/xarray/core/resample.py in interpolate(self, kind) 110 111 """ --> 112 return self._interpolate(kind=kind) 113 114 def _interpolate(self, kind='linear'): ~/Dropbox/src/xarray/xarray/core/resample.py in _interpolate(self, kind) 204 f = interp1d(x, y, kind=kind, axis=axis, bounds_error=True, 205 assume_sorted=True) --> 206 new_x = self._full_index.values.astype('float') 207 208 # construct new up-sampled DataArray AttributeError: 'NoneType' object has no attribute 'values' ``` The application here is that I'm doing a QC check on a dataset that is sometimes missing Feb 29. It is sufficient for my application to always resample and fill Feb 29 when its missing. The pandas equivalent works:
I think I have a fix for this which I'll push up quickly. |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Resample interpolate failing on tutorial dataset 262847801 | |
334226859 | https://github.com/pydata/xarray/issues/1605#issuecomment-334226859 | https://api.github.com/repos/pydata/xarray/issues/1605 | MDEyOklzc3VlQ29tbWVudDMzNDIyNjg1OQ== | jhamman 2443309 | 2017-10-04T17:18:34Z | 2017-10-04T17:18:34Z | MEMBER | @darothen - Thanks and interesting. I'm getting the above error in a real world resample operation so I figured they were the same issue. I'll dig into this and add some more detail in a bit. |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Resample interpolate failing on tutorial dataset 262847801 | |
334224596 | https://github.com/pydata/xarray/issues/1605#issuecomment-334224596 | https://api.github.com/repos/pydata/xarray/issues/1605 | MDEyOklzc3VlQ29tbWVudDMzNDIyNDU5Ng== | darothen 4992424 | 2017-10-04T17:10:02Z | 2017-10-04T17:10:02Z | NONE | (sorry, originally commented from my work account) The tutorial dataset is ~6-hourly, so your operation is a downsampling operation. We don't actually support interpolation on downsampling operations - just aggregations/reductions. Upsampling supports interpolation since there is no implicit way to estimate data between the gaps at the lower temporal frequency. If you just want to estimate a given field at 15-day intervals, for 00Z on those days, then I think you should use |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Resample interpolate failing on tutorial dataset 262847801 |
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 2