home / github / issue_comments

Menu
  • GraphQL API
  • Search all tables

issue_comments: 233776163

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/906#issuecomment-233776163 https://api.github.com/repos/pydata/xarray/issues/906 233776163 MDEyOklzc3VlQ29tbWVudDIzMzc3NjE2Mw== 1217238 2016-07-19T21:45:33Z 2016-07-19T21:45:33Z MEMBER

unstack sorts the data by the order of labels on the levels attribute on the MultiIndex. We don't calculate the order when calling unstack, so there shouldn't be any performance concerns on this side.

By default, pandas.MultiIndex creates each level in levels in sorted order, which is sometimes necessary to ensure indexing (especially slicing) works properly. But if you like, you can control this explicitly by using the MultiIndex constructor directly, e.g., index = pandas.MultiIndex(levels, labels). Does that solve your use case here?

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