home / github / issue_comments

Menu
  • GraphQL API
  • Search all tables

issue_comments: 260999065

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/1126#issuecomment-260999065 https://api.github.com/repos/pydata/xarray/issues/1126 260999065 MDEyOklzc3VlQ29tbWVudDI2MDk5OTA2NQ== 1217238 2016-11-16T16:41:08Z 2016-11-16T16:41:08Z MEMBER

I agree, this is annoying. Unfortunately, pandas does not have support a MultiIndex with one level, so it's not obvious how we would represent such objects in xarray's data model. If we simply treated ds.stack(z=['dim1']) as a rename operation, then we wouldn't know how to do unstack('z').

One option would be to use a normal pandas.Index where Index.name differs from the name of the dimension on the xarray.Variable, though it might be cleaner/more-obvious using our own wrapper class of some sort. I think this would be relatively sane, but it would require adjustments throughout the codebase in every place where we use a MultiIndex.

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