home / github / issue_comments

Menu
  • GraphQL API
  • Search all tables

issue_comments: 521413970

This data as json

html_url issue_url id node_id user created_at updated_at author_association body reactions performed_via_github_app issue
https://github.com/pydata/xarray/issues/3218#issuecomment-521413970 https://api.github.com/repos/pydata/xarray/issues/3218 521413970 MDEyOklzc3VlQ29tbWVudDUyMTQxMzk3MA== 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
}
  480786385
Powered by Datasette · Queries took 78.185ms · About: xarray-datasette