Title: Consistent behavior for array.sum(axis_from_another_array) vs array[axis_from_another_array].sum(axis_name) · Issue #1138 · larray-project/larray · GitHub
Open Graph Title: Consistent behavior for array.sum(axis_from_another_array) vs array[axis_from_another_array].sum(axis_name) · Issue #1138 · larray-project/larray
X Title: Consistent behavior for array.sum(axis_from_another_array) vs array[axis_from_another_array].sum(axis_name) · Issue #1138 · larray-project/larray
Description: array[axis_from_another_array] takes the labels into account while array.sum(axis_from_another_array) does an axis aggregation (and thus ignores the labels). >>> arr = la.ndtest(3) >>> arr a a0 a1 a2 0 1 2 >>> arr2 = la.ndtest(4) >>> arr...
Open Graph Description: array[axis_from_another_array] takes the labels into account while array.sum(axis_from_another_array) does an axis aggregation (and thus ignores the labels). >>> arr = la.ndtest(3) >>> arr a a0 a1 ...
X Description: array[axis_from_another_array] takes the labels into account while array.sum(axis_from_another_array) does an axis aggregation (and thus ignores the labels). >>> arr = la.ndtest(3) >>...
Opengraph URL: https://github.com/larray-project/larray/issues/1138
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Consistent behavior for array.sum(axis_from_another_array) vs array[axis_from_another_array].sum(axis_name)","articleBody":"array[axis_from_another_array] takes the labels into account while array.sum(axis_from_another_array) does an axis aggregation (and thus ignores the labels).\n\n```python\n>>> arr = la.ndtest(3)\n>>> arr\na a0 a1 a2\n 0 1 2\n>>> arr2 = la.ndtest(4)\n>>> arr2\na a0 a1 a2 a3\n 0 1 2 3\n>>> arr2[arr.a]\na a0 a1 a2\n 0 1 2\n>>> # should be 3, not 6\n... arr2.sum(arr.a) \n6\n```","author":{"url":"https://github.com/gdementen","@type":"Person","name":"gdementen"},"datePublished":"2025-11-17T15:16:12Z","url":"https://github.com/larray-project/larray/issues/1138"}
| 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:da6b259c-eed7-e6f8-22d6-1faf258c74fc |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | CD22:2C3D4F:259297:327374:6B002350 |
| html-safe-nonce | 2a93e3a2a7ea014283533da1aba51a27732d4f945500285c08764299f0dded3f |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDRDIyOjJDM0Q0RjoyNTkyOTc6MzI3Mzc0OjZCMDAyMzUwIiwidmlzaXRvcl9pZCI6IjQzODY4Mjc5OTM4OTc1MDk3MTIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | bfa3cbbfd3b04efdbc567ac287a2034f6448cb773b0a7bd72a53fe8ffe26d376 |
| hovercard-subject-tag | issue:3633772526 |
| 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/1138/issue_layout |
| twitter:image | https://opengraph.githubassets.com/c2eec2792264715a05835980f31c2de41843f6bc527ec01c6ce4644a4631561b/larray-project/larray/issues/1138 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/c2eec2792264715a05835980f31c2de41843f6bc527ec01c6ce4644a4631561b/larray-project/larray/issues/1138 |
| og:image:alt | array[axis_from_another_array] takes the labels into account while array.sum(axis_from_another_array) does an axis aggregation (and thus ignores the labels). >>> arr = la.ndtest(3) >>> arr a a0 a1 ... |
| 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