Title: mixed type Axis cannot translate arrays of labels · Issue #1194 · larray-project/larray · GitHub
Open Graph Title: mixed type Axis cannot translate arrays of labels · Issue #1194 · larray-project/larray
X Title: mixed type Axis cannot translate arrays of labels · Issue #1194 · larray-project/larray
Description: This edge-case is actually more important than it looks because we produce such array keys in some places, including reindex. Which means that an array with an Axis with mixed-type labels cannot be "cleaned up" using reindex, which seems...
Open Graph Description: This edge-case is actually more important than it looks because we produce such array keys in some places, including reindex. Which means that an array with an Axis with mixed-type labels cannot be...
X Description: This edge-case is actually more important than it looks because we produce such array keys in some places, including reindex. Which means that an array with an Axis with mixed-type labels cannot be...
Opengraph URL: https://github.com/larray-project/larray/issues/1194
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"mixed type Axis cannot translate arrays of labels","articleBody":"This edge-case is actually more important than it looks because we produce such array keys in some places, including reindex. Which means that an array with an Axis with mixed-type labels cannot be \"cleaned up\" using reindex, which seems like a sensible thing to do (set_labels does work though).\n\n```python\n>>> a = Axis(np.array(['a0', 1], dtype=object), 'a')\n>>> a.index(['a0'])\n[0]\n>>> a.index(np.array(['a0']))\nTypeError: '\u003c' not supported between instances of 'int' and 'str'\n```","author":{"url":"https://github.com/gdementen","@type":"Person","name":"gdementen"},"datePublished":"2026-04-14T09:27:12Z","url":"https://github.com/larray-project/larray/issues/1194"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:4f37652b-f8d2-e143-403d-ddca5272a4a5 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 933A:2D8191:18641:2093C:6B0019A6 |
| html-safe-nonce | 6702b6f3b751da0c7b9a189fa302a85862f65c15f895ad136261ec55ac040d09 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5MzNBOjJEODE5MToxODY0MToyMDkzQzo2QjAwMTlBNiIsInZpc2l0b3JfaWQiOiIyMjkwNjkyOTMwNDg0MDUwMzQyIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | fbfe938beac1ca7025ec8773347e1a3d840110551a91e6c7eccb56423425619c |
| hovercard-subject-tag | issue:4261095701 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/larray-project/larray/1194/issue_layout |
| twitter:image | https://opengraph.githubassets.com/8435d27f47b8b62a13cf02cfb50612d1b6db47069c093b55b6ef9e181cc2b8e9/larray-project/larray/issues/1194 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/8435d27f47b8b62a13cf02cfb50612d1b6db47069c093b55b6ef9e181cc2b8e9/larray-project/larray/issues/1194 |
| og:image:alt | This edge-case is actually more important than it looks because we produce such array keys in some places, including reindex. Which means that an array with an Axis with mixed-type labels cannot be... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | gdementen |
| hostname | github.com |
| expected-hostname | github.com |
| None | a2dd2291b1b13cc9c06f27ec92fa3dbaf34116fc24c9347b8539db61884c59f4 |
| turbo-cache-control | no-preview |
| go-import | github.com/larray-project/larray git https://github.com/larray-project/larray.git |
| octolytics-dimension-user_id | 26460981 |
| octolytics-dimension-user_login | larray-project |
| octolytics-dimension-repository_id | 16981067 |
| octolytics-dimension-repository_nwo | larray-project/larray |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 16981067 |
| octolytics-dimension-repository_network_root_nwo | larray-project/larray |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 70121d4e855ee0bb7b75cf15d061d91f8863c0f8 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width