issues
3 rows where user = 410907 sorted by updated_at descending
This data as json, CSV (advanced)
Suggested facets: comments, created_at (date), updated_at (date), closed_at (date)
| id | node_id | number | title | user | state | locked | assignee | milestone | comments | created_at | updated_at ▲ | closed_at | author_association | active_lock_reason | draft | pull_request | body | reactions | performed_via_github_app | state_reason | repo | type |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 400039356 | MDU6SXNzdWU0MDAwMzkzNTY= | 2685 | porting to new resample when how is lambda/function unclear, wrong advice given. | lexual 410907 | closed | 0 | 1 | 2019-01-16T23:11:35Z | 2023-09-12T15:54:41Z | 2023-09-12T15:54:41Z | NONE | Code Sample, a copy-pastable example if possible```python In [19]: da = xr.DataArray(np.linspace(0, 11, num=12), ...: ... coords=[pd.date_range('15/12/1999', ...: ... periods=12, freq=pd.DateOffset(months=1))], ...: ... dims='time') ...: ...: In [20]: fn = lambda values, axis: 3 In [21]: da.resample('QS-DEC', 'time', how=fn) /home/lexfed/miniconda3/envs/jive/bin/ipython:1: FutureWarning: .resample() has been modified to defer calculations. Instead of passing 'dim' and how="<function \<lambda> at 0x7f1f9e573510>", instead consider using .resample(time="QS-DEC").<function \<lambda> at 0x7f1f9e573510>('time') #!/home/lexfed/miniconda3/envs/jive/bin/python Out[21]: <xarray.DataArray (time: 4)> array([3, 3, 3, 3]) Coordinates: * time (time) datetime64[ns] 1999-12-01 2000-03-01 2000-06-01 2000-09-01 ``` Problem description1) Moving to new resample interface in newer xarray releases, it isn't clear how to port code where the how key word argument is a function/lambda. Can someone please advise how to port code utilising passing to the how argument a function/lambda/etc. 2) The Future Warning given, doesn't actually make sense where how is a function or lambda, that is not an attribute of the result of a resample. e.g. ``` instead consider using .resample(time="QS-DEC").<function \<lambda> at 0x7f1f9e573510>('time') ``` Expected OutputOutput of
|
{
"url": "https://api.github.com/repos/pydata/xarray/issues/2685/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} |
completed | xarray 13221727 | issue | ||||||
| 412693068 | MDU6SXNzdWU0MTI2OTMwNjg= | 2783 | typos in tutorial.py | lexual 410907 | closed | 0 | 1 | 2019-02-21T00:29:22Z | 2019-02-21T03:10:25Z | 2019-02-21T03:10:25Z | NONE | 'achived', should be achieved, I'll send a PR shortly. |
{
"url": "https://api.github.com/repos/pydata/xarray/issues/2783/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} |
completed | xarray 13221727 | issue | ||||||
| 412694880 | MDExOlB1bGxSZXF1ZXN0MjU0ODQ2NTI4 | 2784 | Fix typos in tutorial.py (#2783) | lexual 410907 | closed | 0 | 2 | 2019-02-21T00:37:36Z | 2019-02-21T03:10:06Z | 2019-02-21T03:10:05Z | NONE | 0 | pydata/xarray/pulls/2784 |
|
{
"url": "https://api.github.com/repos/pydata/xarray/issues/2784/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} |
xarray 13221727 | pull |
Advanced export
JSON shape: default, array, newline-delimited, object
CREATE TABLE [issues] (
[id] INTEGER PRIMARY KEY,
[node_id] TEXT,
[number] INTEGER,
[title] TEXT,
[user] INTEGER REFERENCES [users]([id]),
[state] TEXT,
[locked] INTEGER,
[assignee] INTEGER REFERENCES [users]([id]),
[milestone] INTEGER REFERENCES [milestones]([id]),
[comments] INTEGER,
[created_at] TEXT,
[updated_at] TEXT,
[closed_at] TEXT,
[author_association] TEXT,
[active_lock_reason] TEXT,
[draft] INTEGER,
[pull_request] TEXT,
[body] TEXT,
[reactions] TEXT,
[performed_via_github_app] TEXT,
[state_reason] TEXT,
[repo] INTEGER REFERENCES [repos]([id]),
[type] TEXT
);
CREATE INDEX [idx_issues_repo]
ON [issues] ([repo]);
CREATE INDEX [idx_issues_milestone]
ON [issues] ([milestone]);
CREATE INDEX [idx_issues_assignee]
ON [issues] ([assignee]);
CREATE INDEX [idx_issues_user]
ON [issues] ([user]);