Title: describe_by(groups) (and describe(axis, groups)) gives wrong result for std and percentiles · Issue #1124 · larray-project/larray · GitHub
Open Graph Title: describe_by(groups) (and describe(axis, groups)) gives wrong result for std and percentiles · Issue #1124 · larray-project/larray
X Title: describe_by(groups) (and describe(axis, groups)) gives wrong result for std and percentiles · Issue #1124 · larray-project/larray
Description: >>> arr = ndtest((3, 4)) >>> arr.describe('a', 'b0,b1 >> b01;b1,b2 >> b12') >>> arr.describe_by('b0,b1 >> b01;b1,b2 >> b12') b\statistic count mean std min 25% 50% 75% max b01 6.0 4.5 0.0 0.0 2.25 4.5 6.75 9.0 b12 6.0 5.5 0.0 1.0 3.25 5....
Open Graph Description: >>> arr = ndtest((3, 4)) >>> arr.describe('a', 'b0,b1 >> b01;b1,b2 >> b12') >>> arr.describe_by('b0,b1 >> b01;b1,b2 >> b12') b\statistic count mean std min 25% 50% 75% max b01 6.0 4.5 0.0 0.0 2.25 ...
X Description: >>> arr = ndtest((3, 4)) >>> arr.describe('a', 'b0,b1 >> b01;b1,b2 >> b12') >>> arr.describe_by('b0,b1 >> b01;b1,b2 >> b12'...
Opengraph URL: https://github.com/larray-project/larray/issues/1124
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"describe_by(groups) (and describe(axis, groups)) gives wrong result for std and percentiles","articleBody":"```python\r\n>>> arr = ndtest((3, 4))\r\n>>> arr.describe('a', 'b0,b1 >> b01;b1,b2 >> b12')\r\n>>> arr.describe_by('b0,b1 >> b01;b1,b2 >> b12')\r\nb\\statistic count mean std min 25% 50% 75% max\r\n b01 6.0 4.5 0.0 0.0 2.25 4.5 6.75 9.0\r\n b12 6.0 5.5 0.0 1.0 3.25 5.5 7.75 10.0\r\n```\r\nThe correct result should be:\r\n```python\r\nb\\statistic count mean std min 25% 50% 75% max\r\n b01 6.0 4.5 3.6193922141707713 0.0 1.75 4.5 7.25 9.0\r\n b12 6.0 5.5 3.6193922141707713 1.0 2.75 5.5 8.25 10.0\r\n```\r\n\r\nFor example:\r\n```python\r\n>>> arr['b0,b1'].describe()\r\nstatistic count mean std min 25% 50% 75% max\r\n 6.0 4.5 3.6193922141707713 0.0 1.75 4.5 7.25 9.0\r\n```\r\n\r\nI think this is related to #1118. In fact, I think these are two different symptoms for the same bug: because of the way group aggregates and axis aggregates are not done at the same time.\r\n","author":{"url":"https://github.com/gdementen","@type":"Person","name":"gdementen"},"datePublished":"2024-11-29T16:29:02Z","url":"https://github.com/larray-project/larray/issues/1124"}
| 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:26b32977-8e0f-d53e-e45d-38b721b3da12 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9F84:2046A4:16E585:1F01F0:6B001F53 |
| html-safe-nonce | ca28f93bfaedc33d32ae7c3f2982737ce6ce25b4fe5e6484a27c9f3a5d7d385d |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5Rjg0OjIwNDZBNDoxNkU1ODU6MUYwMUYwOjZCMDAxRjUzIiwidmlzaXRvcl9pZCI6IjkxMjM1NTg2ODgyNDEyMzcxIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | e18bcf1fb9d207ca6d160a5da423a314d2951c88795c78904b84eddf9c724367 |
| hovercard-subject-tag | issue:2705585135 |
| 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/1124/issue_layout |
| twitter:image | https://opengraph.githubassets.com/cad9436a45f94c8400e415f5d878846f4dedd15faea3bbfacc8203b59a1b22b8/larray-project/larray/issues/1124 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/cad9436a45f94c8400e415f5d878846f4dedd15faea3bbfacc8203b59a1b22b8/larray-project/larray/issues/1124 |
| og:image:alt | >>> arr = ndtest((3, 4)) >>> arr.describe('a', 'b0,b1 >> b01;b1,b2 >> b12') >>> arr.describe_by('b0,b1 >> b01;b1,b2 >> b12') b\statistic count mean std min 25% 50% 75% max b01 6.0 4.5 0.0 0.0 2.25 ... |
| 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