home / github

Menu
  • GraphQL API
  • Search all tables

issue_comments

Table actions
  • GraphQL API for issue_comments

3 rows where author_association = "NONE" and issue = 480786385 sorted by updated_at descending

✎ View and edit SQL

This data as json, CSV (advanced)

Suggested facets: created_at (date), updated_at (date)

user 2

  • fjanoos 2
  • stale[bot] 1

issue 1

  • merge_asof functionality · 3 ✖

author_association 1

  • NONE · 3 ✖
id html_url issue_url node_id user created_at updated_at ▲ author_association body reactions performed_via_github_app issue
884382105 https://github.com/pydata/xarray/issues/3218#issuecomment-884382105 https://api.github.com/repos/pydata/xarray/issues/3218 IC_kwDOAMm_X840tpmZ stale[bot] 26384082 2021-07-21T18:00:51Z 2021-07-21T18:00:51Z NONE

In order to maintain a list of currently relevant issues, we mark issues as stale after a period of inactivity

If this issue remains relevant, please comment here or remove the stale label; otherwise it will be marked as closed automatically

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  merge_asof functionality 480786385
521413970 https://github.com/pydata/xarray/issues/3218#issuecomment-521413970 https://api.github.com/repos/pydata/xarray/issues/3218 MDEyOklzc3VlQ29tbWVudDUyMTQxMzk3MA== fjanoos 923438 2019-08-14T20:52:06Z 2019-08-14T20:52:06Z NONE

That looks correct. Let me try and revert back to you

On Wed, Aug 14, 2019, 16:44 Maximilian Roos notifications@github.com wrote:

How is merge_asof different from using reindex with method='pad'?

Yes this is right! Mea culpa. We can already use the pandas reindexing for the 1D case (which should cover your case @fjanoos https://github.com/fjanoos ?)

@fjanoos https://github.com/fjanoos can you confirm this is what you're looking for?

In [4]: da=xr.DataArray(list('abcdefghil'), dims=['x'],coords=dict(x=range(10)))

In [8]: da.reindex(x=[0,2.5,2.6,2.7,5,6.2], method='nearest') Out[8]:<xarray.DataArray (x: 6)> array(['a', 'd', 'd', 'd', 'f', 'g'], dtype='<U1') Coordinates: * x (x) float64 0.0 2.5 2.6 2.7 5.0 6.2

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/pydata/xarray/issues/3218?email_source=notifications&email_token=AAHBOLQHOB6IQKA4ZU2EHF3QERVBHA5CNFSM4ILW6VK2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD4KBVHA#issuecomment-521411228, or mute the thread https://github.com/notifications/unsubscribe-auth/AAHBOLQM7PRFBOFQMPSNZL3QERVBHANCNFSM4ILW6VKQ .

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  merge_asof functionality 480786385
521404974 https://github.com/pydata/xarray/issues/3218#issuecomment-521404974 https://api.github.com/repos/pydata/xarray/issues/3218 MDEyOklzc3VlQ29tbWVudDUyMTQwNDk3NA== fjanoos 923438 2019-08-14T20:25:52Z 2019-08-14T20:25:52Z NONE

As of now, a simple workaround would be to do these tasks in pandas and switch back and forth.

A couple of years ago - before pandas had pd.merge_asof - I had implemented a version of this logic in numba when working with numpy arrays. It was blazingly fast - and if there is interest I can try to dig it up ? I would need some help making it work for xarrays and publishing it into the master branch.

On Wed, Aug 14, 2019, 14:12 Maximilian Roos notifications@github.com wrote:

I think this would be good. It would need to be implemented outside of python (cython / numba / etc) given the performance requirements. I'm not sure whether we could borrow the pandas functionality and apply it to multi-dimensional arrays.

Assuming we'd need to write our own, xarray doesn't have any cython dependencies, so I think it would be best in a separate and optional package. These could go in numbagg. It's non-trivial work, so someone would have to have a strong need for it.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/pydata/xarray/issues/3218?email_source=notifications&email_token=AAHBOLSMYMJ5GK3LJLPURBTQERDKFA5CNFSM4ILW6VK2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD4JURTY#issuecomment-521357519, or mute the thread https://github.com/notifications/unsubscribe-auth/AAHBOLVZ6VEZTAZV4MFOMBLQERDKFANCNFSM4ILW6VKQ .

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  merge_asof functionality 480786385

Advanced export

JSON shape: default, array, newline-delimited, object

CSV options:

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]);
Powered by Datasette · Queries took 15.005ms · About: xarray-datasette