Title: Array.reindex fails when not specifying new axis name in dict · Issue #1120 · larray-project/larray · GitHub
Open Graph Title: Array.reindex fails when not specifying new axis name in dict · Issue #1120 · larray-project/larray
X Title: Array.reindex fails when not specifying new axis name in dict · Issue #1120 · larray-project/larray
Description: >>> arr = ndtest(3) >>> arr.reindex({'a': 'a1,a2,a3'}) [...] KeyError: "axis 'a' not found in {{0}}" >>> arr.reindex('a', 'a1,a2,a3') a a1 a2 a3 1.0 2.0 nan >>> arr.reindex({'a': 'a=a1,a2,a3'}) a a1 a2 a3 1.0 2.0 nan >>> arr.reindex({'a'...
Open Graph Description: >>> arr = ndtest(3) >>> arr.reindex({'a': 'a1,a2,a3'}) [...] KeyError: "axis 'a' not found in {{0}}" >>> arr.reindex('a', 'a1,a2,a3') a a1 a2 a3 1.0 2.0 nan >>> arr.reindex({'a': 'a=a1,a2,a3'}) a a...
X Description: >>> arr = ndtest(3) >>> arr.reindex({'a': 'a1,a2,a3'}) [...] KeyError: "axis 'a' not found in {{0}}" >>> arr.reindex('a', 'a...
Opengraph URL: https://github.com/larray-project/larray/issues/1120
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Array.reindex fails when not specifying new axis name in dict","articleBody":"```python\r\n>>> arr = ndtest(3)\r\n>>> arr.reindex({'a': 'a1,a2,a3'})\r\n[...]\r\nKeyError: \"axis 'a' not found in {{0}}\"\r\n>>> arr.reindex('a', 'a1,a2,a3')\r\na a1 a2 a3\r\n 1.0 2.0 nan\r\n>>> arr.reindex({'a': 'a=a1,a2,a3'})\r\na a1 a2 a3\r\n 1.0 2.0 nan\r\n>>> arr.reindex({'a': Axis('a=a1,a2,a3')})\r\na a1 a2 a3\r\n 1.0 2.0 nan\r\n```\r\nvs stumbled on this one","author":{"url":"https://github.com/gdementen","@type":"Person","name":"gdementen"},"datePublished":"2024-10-24T13:13:21Z","url":"https://github.com/larray-project/larray/issues/1120"}
| 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:f0ad0ce1-7d87-a6cc-77ea-fdb0fe881e2d |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8C72:D064:21FAAAF:2E1F9EC:6B002397 |
| html-safe-nonce | 74c82ff7458411284187768545497e638cb46720e7288994d9d1b1aff8b6eb8e |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4QzcyOkQwNjQ6MjFGQUFBRjoyRTFGOUVDOjZCMDAyMzk3IiwidmlzaXRvcl9pZCI6IjIwMDI4ODczMTEwNDYzMzg0IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 39f07c8f03aeffea23359fe226a2efeae20548f1d8fbe45fb6be1f95fc304f0e |
| hovercard-subject-tag | issue:2611573505 |
| 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/1120/issue_layout |
| twitter:image | https://opengraph.githubassets.com/5523e0124ef7002264f023a3821001d7ac96086f14659a00b59b56a0def28cdd/larray-project/larray/issues/1120 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/5523e0124ef7002264f023a3821001d7ac96086f14659a00b59b56a0def28cdd/larray-project/larray/issues/1120 |
| og:image:alt | >>> arr = ndtest(3) >>> arr.reindex({'a': 'a1,a2,a3'}) [...] KeyError: "axis 'a' not found in {{0}}" >>> arr.reindex('a', 'a1,a2,a3') a a1 a2 a3 1.0 2.0 nan >>> arr.reindex({'a': 'a=a1,a2,a3'}) a a... |
| 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