issues: 933551030
This data as json
id | node_id | number | title | user | state | locked | assignee | milestone | comments | created_at | updated_at | closed_at | author_association | active_lock_reason | draft | pull_request | body | reactions | performed_via_github_app | state_reason | repo | type |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
933551030 | MDU6SXNzdWU5MzM1NTEwMzA= | 5553 | Flexible indexes: how best to implement the new data model? | 4160723 | closed | 0 | 2 | 2021-06-30T10:38:13Z | 2021-08-09T07:56:56Z | 2021-08-09T07:56:56Z | MEMBER | Yesterday during the flexible indexes weekly meeting we have discussed with @shoyer and @jhamman on what would be the best approach to implement the new data model described here. In this issue I summarize the implementation of the current data model as well as some suggestions for the new data model along with their pros / cons (I might still be missing important ones!). I don't think there's an easy or ideal solution unfortunately, so @pydata/xarray any feedback would be very welcome! Current data model implementationCurrently any (pandas) index is wrapped into an Proposed alternativesOption 1: independent (coordinate) variables and indexesIndexes and coordinates are loosely coupled, i.e., a Pros:
Cons:
Option 2: indexes hold coordinate variablesThis is the opposite approach of the current one. Here, a Pros:
Cons:
Option 3: intermediate solutionWhen an index is set (or unset), it returns a new set of coordinate variables to replace the existing ones. Pros:
Cons:
|
{ "url": "https://api.github.com/repos/pydata/xarray/issues/5553/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
completed | 13221727 | issue |