Title: Header order · Issue #40 · astanin/python-tabulate · GitHub
Open Graph Title: Header order · Issue #40 · astanin/python-tabulate
X Title: Header order · Issue #40 · astanin/python-tabulate
Description: Header order defined by the order that keys are discovered, rather than the order that they are present in. E.g. from collections import OrderedDict from tabulate import tabulate test_dict = [ OrderedDict([("a", 1), ("b", 2), ("e", 5)]),...
Open Graph Description: Header order defined by the order that keys are discovered, rather than the order that they are present in. E.g. from collections import OrderedDict from tabulate import tabulate test_dict = [ Orde...
X Description: Header order defined by the order that keys are discovered, rather than the order that they are present in. E.g. from collections import OrderedDict from tabulate import tabulate test_dict = [ Orde...
Opengraph URL: https://github.com/astanin/python-tabulate/issues/40
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Header order ","articleBody":"Header order defined by the order that keys are discovered, rather than the order that they are present in.\r\n\r\nE.g. \r\n\r\n```\r\nfrom collections import OrderedDict\r\nfrom tabulate import tabulate\r\n\r\ntest_dict = [\r\n OrderedDict([(\"a\", 1), (\"b\", 2), (\"e\", 5)]),\r\n OrderedDict([(\"a\", 1), (\"b\", 2), (\"c\", 3), (\"d\", 4), (\"e\", 5)]),\r\n ]\r\n\r\nprint(tabulate(\r\n test_dict, headers=\"keys\", tablefmt=\"simple\", missingval=\"0\"\r\n))\r\n```\r\n\r\ngives the output:\r\n\r\n```\r\n a b e c d\r\n--- --- --- --- ---\r\n 1 2 5 0 0\r\n 1 2 5 3 4\r\n```\r\n\r\nwhereas I would prefer it in this order:\r\n\r\n```\r\n a b c d e\r\n--- --- --- --- ---\r\n 1 2 0 0 5\r\n 1 2 3 4 5\r\n```","author":{"url":"https://github.com/danja100","@type":"Person","name":"danja100"},"datePublished":"2020-03-04T15:38:08Z","url":"https://github.com/astanin/python-tabulate/issues/40"}
| 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:72555b3b-1691-d9fc-b7e4-75a90c91c7bf |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A738:202A1:2A3F5C:1B98AA:6AFF4FBF |
| html-safe-nonce | 12bc090696b170ed1d86e500785d6d5226f6d2b8105787987eb49ecb45c54915 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNzM4OjIwMkExOjJBM0Y1QzoxQjk4QUE6NkFGRjRGQkYiLCJ2aXNpdG9yX2lkIjoiMjcwMTI2ODA0NDIyMjUxNzE4MyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 86fa870fe5647b3da8b8b0855a5c3eddc4f95c2689b71efbb4ffc283a212857a |
| hovercard-subject-tag | issue:575511505 |
| 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/astanin/python-tabulate/40/issue_layout |
| twitter:image | https://opengraph.githubassets.com/43aa1864dbcdf1afa8aa47eb18ef0f8d799a9eb2b579851e7aed922dc14337bd/astanin/python-tabulate/issues/40 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/43aa1864dbcdf1afa8aa47eb18ef0f8d799a9eb2b579851e7aed922dc14337bd/astanin/python-tabulate/issues/40 |
| og:image:alt | Header order defined by the order that keys are discovered, rather than the order that they are present in. E.g. from collections import OrderedDict from tabulate import tabulate test_dict = [ Orde... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | danja100 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 6672a281260b126053da5da19a6127ba7804ee26f255c9b12ad124a822a55cd0 |
| turbo-cache-control | no-preview |
| go-import | github.com/astanin/python-tabulate git https://github.com/astanin/python-tabulate.git |
| octolytics-dimension-user_id | 71802 |
| octolytics-dimension-user_login | astanin |
| octolytics-dimension-repository_id | 205875548 |
| octolytics-dimension-repository_nwo | astanin/python-tabulate |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 205875548 |
| octolytics-dimension-repository_network_root_nwo | astanin/python-tabulate |
| 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 | 28805d6cf6280f5e10f2a6624504c872d9633a0f |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width