Title: reindex(dict) does not work with list of labels · Issue #1068 · larray-project/larray · GitHub
Open Graph Title: reindex(dict) does not work with list of labels · Issue #1068 · larray-project/larray
X Title: reindex(dict) does not work with list of labels · Issue #1068 · larray-project/larray
Description: (while reindex(axis, label_list) works) >>> arr = ndtest((2, 3)) >>> arr.reindex('a', ['a1', 'a2']).reindex('b', ['b1', 'b2']) a\b b1 b2 a1 4.0 5.0 a2 nan nan >>> arr.reindex({'a': ['a1', 'a2'], 'b': ['b1', 'b2']}) KeyError: "axis 'a' no...
Open Graph Description: (while reindex(axis, label_list) works) >>> arr = ndtest((2, 3)) >>> arr.reindex('a', ['a1', 'a2']).reindex('b', ['b1', 'b2']) a\b b1 b2 a1 4.0 5.0 a2 nan nan >>> arr.reindex({'a': ['a1', 'a2'], 'b...
X Description: (while reindex(axis, label_list) works) >>> arr = ndtest((2, 3)) >>> arr.reindex('a', ['a1', 'a2']).reindex('b', ['b1', 'b2']) a\b ...
Opengraph URL: https://github.com/larray-project/larray/issues/1068
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"reindex(dict) does not work with list of labels","articleBody":" (while reindex(axis, label_list) works)\r\n\r\n```python\r\n>>> arr = ndtest((2, 3))\r\n>>> arr.reindex('a', ['a1', 'a2']).reindex('b', ['b1', 'b2'])\r\na\\b b1 b2\r\n a1 4.0 5.0\r\n a2 nan nan\r\n>>> arr.reindex({'a': ['a1', 'a2'], 'b': ['b1', 'b2']})\r\nKeyError: \"axis 'a' not found in {{0}, {1}}\"\r\n>>> arr.reindex({'a': Axis(['a1', 'a2'], 'a'), 'b': Axis(['b1', 'b2'], 'b')})\r\na\\b b1 b2\r\n a1 4.0 5.0\r\n a2 nan nan\r\n```","author":{"url":"https://github.com/gdementen","@type":"Person","name":"gdementen"},"datePublished":"2023-04-14T11:45:23Z","url":"https://github.com/larray-project/larray/issues/1068"}
| 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:a5404bd3-c7c9-0968-6b30-fa0628a91c16 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B04C:5875E:22118FC:2E4FBA2:6B0025D4 |
| html-safe-nonce | ae80a8500f5c42f0d148b687cc33a6f95b407597306f946693c0a42e73bfc9a5 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCMDRDOjU4NzVFOjIyMTE4RkM6MkU0RkJBMjo2QjAwMjVENCIsInZpc2l0b3JfaWQiOiIxMjA4MjE3NTc4MjUwNDQ2MjkyIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | b64b01b81bd776f845061d6bb4677d6e9c22746394caf0623b580b61aa2b91e9 |
| hovercard-subject-tag | issue:1668097809 |
| 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/1068/issue_layout |
| twitter:image | https://opengraph.githubassets.com/a6ce31c108b631ec728323311759ca1876c6bee52cf1b522aba4b6540891429c/larray-project/larray/issues/1068 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/a6ce31c108b631ec728323311759ca1876c6bee52cf1b522aba4b6540891429c/larray-project/larray/issues/1068 |
| og:image:alt | (while reindex(axis, label_list) works) >>> arr = ndtest((2, 3)) >>> arr.reindex('a', ['a1', 'a2']).reindex('b', ['b1', 'b2']) a\b b1 b2 a1 4.0 5.0 a2 nan nan >>> arr.reindex({'a': ['a1', 'a2'], 'b... |
| 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 | 4eb4cba0d69f045374ac15de9666d22b0961e1d555cc3824f36b7734c00c78e0 |
| 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 | 44c658b24abf00491fb7ae5f56d42c9f38cbeab2 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width