Title: from_frame(df_with_mixed_str_number_multi_index) broken · Issue #1193 · larray-project/larray · GitHub
Open Graph Title: from_frame(df_with_mixed_str_number_multi_index) broken · Issue #1193 · larray-project/larray
X Title: from_frame(df_with_mixed_str_number_multi_index) broken · Issue #1193 · larray-project/larray
Description: The numbers are converted to strings. I noticed initially that that arrays with mixed-type labels do not roundtrip correctly, but this is the root issue. Also adding an explicit test for the roundtrip to HDF would be a good idea though. ...
Open Graph Description: The numbers are converted to strings. I noticed initially that that arrays with mixed-type labels do not roundtrip correctly, but this is the root issue. Also adding an explicit test for the roundt...
X Description: The numbers are converted to strings. I noticed initially that that arrays with mixed-type labels do not roundtrip correctly, but this is the root issue. Also adding an explicit test for the roundt...
Opengraph URL: https://github.com/larray-project/larray/issues/1193
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"from_frame(df_with_mixed_str_number_multi_index) broken","articleBody":"The numbers are converted to strings. I noticed initially that that arrays with mixed-type labels do not roundtrip correctly, but this is the root issue. Also adding an explicit test for the roundtrip to HDF would be a good idea though. The bug is probably also present for simple (non-multi) index dataframes and maybe in the sorted case too (I need to test the status of the 4 combinations of simple/multi and sort/no sort).\n\nI discovered this when preparing the 0.35.1 release because I fixed it alongside another issue but I reintroduced the bug on purpose because the demo model relies on the broken behavior and I do not want to knowingly break models in a bugfix release. See `inout/pandas.py:simple_index_to_labels()`\n\n```python\n>>> df = pd.DataFrame([['s0', 'o0', 0], ['s1', 1, 1]], columns=['str', 'obj', 'value']).set_index(['str', 'obj'])\n>>> df.index.unique(1)\nIndex(['o0', 1], dtype='object', name='obj')\n>>> from_frame(df).obj.dtype\ndtype('\u003cU21')\n```","author":{"url":"https://github.com/gdementen","@type":"Person","name":"gdementen"},"datePublished":"2026-04-13T15:02:47Z","url":"https://github.com/larray-project/larray/issues/1193"}
| 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:669853a7-6d78-0ec7-e030-fddba53f19bc |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C5DA:D33AC:33059C:44E76A:6B0027C7 |
| html-safe-nonce | c0bf3ae3863ddf77e204df663452234cb3b7fc5b581ac8bdc65a88ce15c2a1fe |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDNURBOkQzM0FDOjMzMDU5Qzo0NEU3NkE6NkIwMDI3QzciLCJ2aXNpdG9yX2lkIjoiNDk1MjI5NzM5NjYwOTQ5MjkzNSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 1794657361a107b45a4e0929b079cc1ec8de13d299547bbee7bd284e982c4746 |
| hovercard-subject-tag | issue:4255882488 |
| 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/1193/issue_layout |
| twitter:image | https://opengraph.githubassets.com/fa4e26ba3cb0e3ac80706c259b30fb53d88bb915cf28c690fca2da5724ffecce/larray-project/larray/issues/1193 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/fa4e26ba3cb0e3ac80706c259b30fb53d88bb915cf28c690fca2da5724ffecce/larray-project/larray/issues/1193 |
| og:image:alt | The numbers are converted to strings. I noticed initially that that arrays with mixed-type labels do not roundtrip correctly, but this is the root issue. Also adding an explicit test for the roundt... |
| 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