home / github / issue_comments

Menu
  • Search all tables
  • GraphQL API

issue_comments: 75417769

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/328#issuecomment-75417769 https://api.github.com/repos/pydata/xarray/issues/328 75417769 MDEyOklzc3VlQ29tbWVudDc1NDE3NzY5 306380 2015-02-22T03:37:22Z 2015-02-22T03:37:22Z MEMBER

support super-imposing array values inter-leaved on top of a constant array of NaN (necessary for many alignment operations)

@shoyer can you clarify this one? Would the np.choose interface satisfy this?

``` Python In [1]: import numpy as np

In [2]: a = np.arange(4).reshape(2, 2)

In [3]: a Out[3]: array([[0, 1], [2, 3]])

In [4]: x = np.array([[True, False], [True, True]])

In [5]: np.choose(x, [-10, a]) Out[5]: array([[ 0, -10], [ 2, 3]]) ```

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