Title: cleanup API for methods changing/dropping Array labels/values vs labels in Axis/AxisCollection · Issue #783 · larray-project/larray · GitHub
Open Graph Title: cleanup API for methods changing/dropping Array labels/values vs labels in Axis/AxisCollection · Issue #783 · larray-project/larray
X Title: cleanup API for methods changing/dropping Array labels/values vs labels in Axis/AxisCollection · Issue #783 · larray-project/larray
Description: Functions to change labels and values are inconsistent for LArray, Axis and AxisCollection. e.g. Array.set_labels can accept both a mapping and functions, but the same functionality is split in two functions for values: apply and apply_m...
Open Graph Description: Functions to change labels and values are inconsistent for LArray, Axis and AxisCollection. e.g. Array.set_labels can accept both a mapping and functions, but the same functionality is split in two...
X Description: Functions to change labels and values are inconsistent for LArray, Axis and AxisCollection. e.g. Array.set_labels can accept both a mapping and functions, but the same functionality is split in two...
Opengraph URL: https://github.com/larray-project/larray/issues/783
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"cleanup API for methods changing/dropping Array labels/values vs labels in Axis/AxisCollection","articleBody":"Functions to change labels and values are inconsistent for LArray, Axis and AxisCollection.\r\n\r\ne.g. Array.set_labels can accept both a mapping and functions, but the same functionality is split in two functions for values: apply and apply_map; the functions do not have cohesive names, etc.\r\n\r\nArray.apply_map and Axis.replace/Array.set_labels/AxisCollection.set_labels\r\n\r\nAll these functions provide some way to replace some values by some other values on their respective level. We should:\r\n\r\n1. find cohesive names for the functions. For examples:\r\n * Array.replace_labels, Array.replace_values, Axis.replace_labels, AxisCollection.replace_labels\r\n or\r\n * Array.change_labels, Array.change_values, Axis.change_labels, AxisCollection.change_labels\r\n or\r\n * Array.set_labels, Array.set_values, Axis.set_labels, AxisCollection.set_labels,\r\n (Array.replace_values/change_values/set_values) would replace both Array.apply and Array.apply_map\r\n \r\n * Array.drop_labels, Array.drop_values, Axis.drop_labels, AxisCollection.drop_labels\r\n * Array.sort_labels, Array.sort_values, Axis.sort_labels, AxisCollection.sort_labels\r\n \r\n * Array.insert, Axis.insert, AxisCollection.insert_labels, AxisCollection.insert_axes\r\n or\r\n * Array.insert_labels??? (inserts both labels & values), Axis.insert_labels, AxisCollection.insert_labels\r\n\r\n * Array.append (appends both label & value), Axis.append, AxisCollection.append_labels, AxisCollection.append_axis\r\n\r\n * Array.combine_axes, Array.split_axes\r\n or\r\n * Array.combine_axes, Array.split_labels, Array.chunks, Axis.chunks (see #505)\r\n\r\n2. make sure the arguments & functionality are as close as possible.","author":{"url":"https://github.com/gdementen","@type":"Person","name":"gdementen"},"datePublished":"2019-06-24T10:41:38Z","url":"https://github.com/larray-project/larray/issues/783"}
| 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:c6bd9f9b-48f7-d0be-47ff-b3599f4d04dd |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9BA4:3F9D33:20ABEB7:2C5156D:6B001E47 |
| html-safe-nonce | dcb204f2e8fe80ae300ab42d5329a17b9fbe3d55f04cf8cfb141332749872f9d |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5QkE0OjNGOUQzMzoyMEFCRUI3OjJDNTE1NkQ6NkIwMDFFNDciLCJ2aXNpdG9yX2lkIjoiMzQ2NDY3NTA1NjMzNDkzNzY3MSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | bd267438dce6779c9a5c45f4e561a65b15d5d6d9842591aadc702599d8b95c5f |
| hovercard-subject-tag | issue:459818978 |
| 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/783/issue_layout |
| twitter:image | https://opengraph.githubassets.com/1315d3311611519fc71afbab24e47baef3945806adabc6a6085735f608e7f1ae/larray-project/larray/issues/783 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/1315d3311611519fc71afbab24e47baef3945806adabc6a6085735f608e7f1ae/larray-project/larray/issues/783 |
| og:image:alt | Functions to change labels and values are inconsistent for LArray, Axis and AxisCollection. e.g. Array.set_labels can accept both a mapping and functions, but the same functionality is split in two... |
| 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