home / github / issues

Menu
  • Search all tables
  • GraphQL API

issues: 95991680

This data as json

id node_id number title user state locked assignee milestone comments created_at updated_at closed_at author_association active_lock_reason draft pull_request body reactions performed_via_github_app state_reason repo type
95991680 MDExOlB1bGxSZXF1ZXN0NDAzMjQ2MzU= 481 Add pointwise indexing via isel_points method 2443309 closed 0   1213895 5 2015-07-20T05:41:36Z 2015-07-27T05:37:19Z 2015-07-27T05:04:46Z MEMBER   0 pydata/xarray/pulls/481

This provides behavior equivalent to numpy slicing with multiple lists.

Example

``` python

da = xray.DataArray(np.arange(56).reshape((7, 8)), dims=['x', 'y']) da <xray.DataArray (x: 7, y: 8)> array([[ 0, 1, 2, 3, 4, 5, 6, 7], [ 8, 9, 10, 11, 12, 13, 14, 15], [16, 17, 18, 19, 20, 21, 22, 23], [24, 25, 26, 27, 28, 29, 30, 31], [32, 33, 34, 35, 36, 37, 38, 39], [40, 41, 42, 43, 44, 45, 46, 47], [48, 49, 50, 51, 52, 53, 54, 55]]) Coordinates: * x (x) int64 0 1 2 3 4 5 6 * y (y) int64 0 1 2 3 4 5 6 7 da.isel_points(x=[0, 1, 6], y=[0, 1, 0]) <xray.DataArray (points: 3)> array([ 0, 9, 48]) Coordinates: y (points) int64 0 1 0 x (points) int64 0 1 6 * points (points) int64 0 1 2 ```

related: #475

{
    "url": "https://api.github.com/repos/pydata/xarray/issues/481/reactions",
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
    13221727 pull

Links from other tables

  • 2 rows from issues_id in issues_labels
  • 5 rows from issue in issue_comments
Powered by Datasette · Queries took 0.588ms · About: xarray-datasette