issue_comments
5 rows where issue = 323839238 sorted by updated_at descending
This data as json, CSV (advanced)
Suggested facets: created_at (date), updated_at (date)
issue 1
- Dataset.resample() adds time dimension to independant variables · 5 ✖
| id | html_url | issue_url | node_id | user | created_at | updated_at ▲ | author_association | body | reactions | performed_via_github_app | issue |
|---|---|---|---|---|---|---|---|---|---|---|---|
| 1073493914 | https://github.com/pydata/xarray/issues/2145#issuecomment-1073493914 | https://api.github.com/repos/pydata/xarray/issues/2145 | IC_kwDOAMm_X84__Dea | dcherian 2448579 | 2022-03-21T05:15:52Z | 2022-03-21T05:15:52Z | MEMBER | There is compatibility code in |
{
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} |
Dataset.resample() adds time dimension to independant variables 323839238 | |
| 391114129 | https://github.com/pydata/xarray/issues/2145#issuecomment-391114129 | https://api.github.com/repos/pydata/xarray/issues/2145 | MDEyOklzc3VlQ29tbWVudDM5MTExNDEyOQ== | shoyer 1217238 | 2018-05-22T19:34:48Z | 2018-05-22T19:47:09Z | MEMBER | This is not really desirable behavior, but it's an implication of how xarray implements
To fix this I would suggest three steps:
1. Add a |
{
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} |
Dataset.resample() adds time dimension to independant variables 323839238 | |
| 390267025 | https://github.com/pydata/xarray/issues/2145#issuecomment-390267025 | https://api.github.com/repos/pydata/xarray/issues/2145 | MDEyOklzc3VlQ29tbWVudDM5MDI2NzAyNQ== | malmans2 22245117 | 2018-05-18T16:50:47Z | 2018-05-22T19:18:34Z | CONTRIBUTOR | In my previous comment I said that this would be useful for staggered grids, but then I realized that resample only operates on the time dimension. Anyway, here is my example: ```python import xarray as xr import pandas as pd import numpy as np Create coordinatestime = pd.date_range('1/1/2018', periods=365, freq='D') space = pd.np.arange(10) Create random variablesvar_withtime1 = np.random.randn(len(time), len(space)) var_withtime2 = np.random.randn(len(time), len(space)) var_timeless1 = np.random.randn(len(space)) var_timeless2 = np.random.randn(len(space)) Create datasetds = xr.Dataset({'var_withtime1': (['time', 'space'], var_withtime1), 'var_withtime2': (['time', 'space'], var_withtime2), 'var_timeless1': (['space'], var_timeless1), 'var_timeless2': (['space'], var_timeless2)}, coords={'time': (['time',], time), 'space': (['space',], space)}) Standard resample: this add the time dimension to the timeless variablesds_resampled = ds.resample(time='1M').mean() My workaround: this does not add the time dimension to the timeless variablesds_withtime = ds.drop([ var for var in ds.variables if not 'time' in ds[var].dims ]) ds_timeless = ds.drop([ var for var in ds.variables if 'time' in ds[var].dims ]) ds_workaround = xr.merge([ds_timeless, ds_withtime.resample(time='1M').mean()]) ``` Datasets: ```
|
{
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} |
Dataset.resample() adds time dimension to independant variables 323839238 | |
| 390275158 | https://github.com/pydata/xarray/issues/2145#issuecomment-390275158 | https://api.github.com/repos/pydata/xarray/issues/2145 | MDEyOklzc3VlQ29tbWVudDM5MDI3NTE1OA== | fmaussion 10050469 | 2018-05-18T17:21:11Z | 2018-05-18T17:21:11Z | MEMBER | I see. Note that |
{
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} |
Dataset.resample() adds time dimension to independant variables 323839238 | |
| 389886807 | https://github.com/pydata/xarray/issues/2145#issuecomment-389886807 | https://api.github.com/repos/pydata/xarray/issues/2145 | MDEyOklzc3VlQ29tbWVudDM4OTg4NjgwNw== | fmaussion 10050469 | 2018-05-17T14:29:46Z | 2018-05-17T14:29:46Z | MEMBER | Thanks for the report! Do you think you can craft a minimal working example ? |
{
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} |
Dataset.resample() adds time dimension to independant variables 323839238 |
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