home / github / issue_comments

Menu
  • Search all tables
  • GraphQL API

issue_comments: 442662561

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/1603#issuecomment-442662561 https://api.github.com/repos/pydata/xarray/issues/1603 442662561 MDEyOklzc3VlQ29tbWVudDQ0MjY2MjU2MQ== 1217238 2018-11-29T00:48:12Z 2018-11-29T00:48:28Z MEMBER

For example, I don't think it's possible to do point-wise indexing along anything other than the first level of a MultiIndex.

This is clearly not true, since it works in pandas: python import pandas as pd index = pd.MultiIndex.from_product([list('ab'),[1,2]]) series = pd.Series(range(4), index) print(series.loc[:, [1, 2]])

That said, I still don't know how to use public MultiIndex methods for this. Neither index.get_loc_level([1, 2], level=1) nor index.get_loc((slice(None), [1, 2])) work.

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