home / github / issue_comments

Menu
  • GraphQL API
  • Search all tables

issue_comments: 1282857157

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/pull/7182#issuecomment-1282857157 https://api.github.com/repos/pydata/xarray/issues/7182 1282857157 IC_kwDOAMm_X85MdtjF 14808389 2022-10-18T18:46:05Z 2022-10-18T21:15:42Z MEMBER

I wonder if it is possible to create a generic MultiIndex? Something like python ds.set_xindex( ["a", "b"], MultiIndex([("a", PandasIndex), ("b", PandasIndex), (["a", "b"], BallTreeIndex)), ) (but I'm sure we can find a better syntax... maybe create a hashable sequence that is not a tuple, since that is already taken? and change the list of tuples to a dict).

For that concept to work, the return value of MultiIndex would have to be a factory function / class, which would instantiate the actual index.

What do you think?

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