home / github / issues

Menu
  • GraphQL API
  • Search all tables

issues: 186036077

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
186036077 MDU6SXNzdWUxODYwMzYwNzc= 1067 Indexing turns 1D coordinates into scalar coordinates 5572303 closed 0     1 2016-10-28T22:29:41Z 2019-01-22T19:22:17Z 2019-01-22T19:22:17Z CONTRIBUTOR      

Starting with

arr = xr.DataArray(np.arange(0, 7.5, 0.5).reshape(3, 5),dims=('x', 'y'))

This will drop the index on x:

arr[0, :]

but this won't:

arr[slice(0,1), :]

While the laymen would expect them both to return the same thing. Is there a reason to this design choice, or could I file a PR for it?

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

Links from other tables

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