issue_comments: 945928870
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/5647#issuecomment-945928870 | https://api.github.com/repos/pydata/xarray/issues/5647 | 945928870 | IC_kwDOAMm_X844Ybqm | 1217238 | 2021-10-18T16:04:52Z | 2021-10-18T16:04:52Z | MEMBER |
I agree, this doesn't make sense in the long term because the "name" of the MultiIndex is no longer necessary: it's just the same index that happens to index each of the levels. Let's preserve it (for now) for backwards compat, but in the long term the ideal is certainly either (a) using
If part of Xarray's API currently doesn't raise an error but instead returns all NaNs, and this case can be detected based on static type information (e.g., shapes, dtypes, dimension names, variable name, index types), then I agree that the best user experience is almost certainly to raise an error instead. NaNs in numerical computing are essentially a mechanism for "runtime error handling" that can arise from values in array computation. If something can be identified based on type information, that is a better user experience.
I think we can consider these edge cases bugs and fix them :) |
{ "total_count": 1, "+1": 1, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
955936490 |