home / github / issue_comments

Menu
  • GraphQL API
  • Search all tables

issue_comments: 586072916

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/3768#issuecomment-586072916 https://api.github.com/repos/pydata/xarray/issues/3768 586072916 MDEyOklzc3VlQ29tbWVudDU4NjA3MjkxNg== 8238804 2020-02-14T02:52:34Z 2020-02-14T02:52:34Z NONE

The documentation for what you want is here: https://xarray.pydata.org/en/stable/indexing.html#more-advanced-indexing. Basically you need to provide DataArrays with a new dimension instead of lists.

Thanks! I must have missed this, I suspect since my use was actually setting the values at some coordinates. Is there an efficient way to do that?

I'd be happy to add some notes to the documentation about that. The .sel and isel methods could definitely use longer doc strings. It would be useful to have a better understanding of the concept this implements though. Why do DataArrays have different behavior than other array-likes for these methods?

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  564555854
Powered by Datasette · Queries took 0.717ms · About: xarray-datasette