home / github / issue_comments

Menu
  • GraphQL API
  • Search all tables

issue_comments: 1265252754

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/2028#issuecomment-1265252754 https://api.github.com/repos/pydata/xarray/issues/2028 1265252754 IC_kwDOAMm_X85LajmS 4160723 2022-10-03T10:38:57Z 2022-10-03T16:45:35Z MEMBER

With the last release v2022.09.0, this is now possible via .set_xindex():

```python a = a.set_xindex("currency")

a.sel(currency="EUR")

<xarray.DataArray (country: 2)>

array([20, 30])

Coordinates:

* country (country) <U7 'Germany' 'France'

* currency (country) <U3 'EUR' 'EUR'

```

Closed in #6971 (although set_xindex still needs to be documented in the User Guide).

{
    "total_count": 9,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 5,
    "confused": 0,
    "heart": 3,
    "rocket": 1,
    "eyes": 0
}
  309691307
Powered by Datasette · Queries took 0.759ms · About: xarray-datasette