home / github / issue_comments

Menu
  • GraphQL API
  • Search all tables

issue_comments: 126784623

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/pull/504#issuecomment-126784623 https://api.github.com/repos/pydata/xarray/issues/504 126784623 MDEyOklzc3VlQ29tbWVudDEyNjc4NDYyMw== 1217238 2015-07-31T18:58:16Z 2015-07-31T18:58:16Z MEMBER

Both R and pandas allow the user to do a[a < 0] and a[a < 0] = 0. So what I'm wondering is why not extend xray's indexing to also work on arrays that are the same shape and have the same labels as the original array?

The problem is that a[a < 0] in NumPy flattens arrays with more than one dimension. We can't do this in xray without doing something like pointwise indexing to flatten out the labels, too.

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