home / github / issues

Menu
  • GraphQL API
  • Search all tables

issues: 462049420

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
462049420 MDExOlB1bGxSZXF1ZXN0MjkyODQyOTg5 3054 Flat iteration over DataArray 6164157 closed 0     6 2019-06-28T14:00:24Z 2021-06-17T16:16:50Z 2021-06-17T16:16:50Z CONTRIBUTOR   0 pydata/xarray/pulls/3054
  • [ ] Tests added
  • [ ] Fully documented, including whats-new.rst for all changes and api.rst for new API

A very simple way to iterate over DataArrays, imitating numpy's flat iterator.

For a DataArray da, I implemented a flat iterator that works exactly like da.values.flat, but returns a singelton DataArray that has all the coordinates and meta data and whatnot.

I wrote it because I needed it for something and thought it would be useful for others too. I'd love to hear your opinions - if you think it's useful I'll write up some unittests.

{
    "url": "https://api.github.com/repos/pydata/xarray/issues/3054/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

  • 1 row from issues_id in issues_labels
  • 6 rows from issue in issue_comments
Powered by Datasette · Queries took 0.624ms · About: xarray-datasette