Title: Improve error reporting when tabular_data is a dict of non-iterable values · Issue #124 · astanin/python-tabulate · GitHub
Open Graph Title: Improve error reporting when tabular_data is a dict of non-iterable values · Issue #124 · astanin/python-tabulate
X Title: Improve error reporting when tabular_data is a dict of non-iterable values · Issue #124 · astanin/python-tabulate
Description: I am trying to tabulate a counter from collections counter print(tabulate(counter)) this approach gives an error message: File "/Users/wf/Library/Python/3.8/lib/python/site-packages/tabulate.py", line 1528, in tabulate list_of_lists, hea...
Open Graph Description: I am trying to tabulate a counter from collections counter print(tabulate(counter)) this approach gives an error message: File "/Users/wf/Library/Python/3.8/lib/python/site-packages/tabulate.py", l...
X Description: I am trying to tabulate a counter from collections counter print(tabulate(counter)) this approach gives an error message: File "/Users/wf/Library/Python/3.8/lib/python/site-packages/tabulate.p...
Opengraph URL: https://github.com/astanin/python-tabulate/issues/124
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Improve error reporting when tabular_data is a dict of non-iterable values","articleBody":"I am trying to tabulate a counter from collections counter\r\n``` python\r\nprint(tabulate(counter))\r\n```\r\n\r\nthis approach gives an error message:\r\n```\r\n File \"/Users/wf/Library/Python/3.8/lib/python/site-packages/tabulate.py\", line 1528, in tabulate\r\n list_of_lists, headers = _normalize_tabular_data(\r\n File \"/Users/wf/Library/Python/3.8/lib/python/site-packages/tabulate.py\", line 1089, in _normalize_tabular_data\r\n izip_longest(*tabular_data.values())\r\nTypeError: 'int' object is not iterable\r\n```\r\n\r\n**What else should i do - or would this be a feature request?**","author":{"url":"https://github.com/WolfgangFahl","@type":"Person","name":"WolfgangFahl"},"datePublished":"2021-05-03T07:12:07Z","url":"https://github.com/astanin/python-tabulate/issues/124"}
| 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:24b1ea21-368a-8c5d-ed16-572c92b4c611 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9ED8:3445BC:2A82D6:3A3E50:6AFF2493 |
| html-safe-nonce | 0b715377dccc2aa60558d276c21cfeef492312836c9f1a5f877c4126d42a8d6c |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5RUQ4OjM0NDVCQzoyQTgyRDY6M0EzRTUwOjZBRkYyNDkzIiwidmlzaXRvcl9pZCI6Ijc3NDMwNDQ5Njk4ODY2MDg4MyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 8857191aceda4e9cbde9ae9a224e6ce6ee6d8ad685d7fd6de539612f73f24320 |
| hovercard-subject-tag | issue:874301052 |
| 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/124/issue_layout |
| twitter:image | https://opengraph.githubassets.com/baa169243eb58783f70d2ee5fef24442aaeaae41fec5ecf00cf8a8480d71dcd8/astanin/python-tabulate/issues/124 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/baa169243eb58783f70d2ee5fef24442aaeaae41fec5ecf00cf8a8480d71dcd8/astanin/python-tabulate/issues/124 |
| og:image:alt | I am trying to tabulate a counter from collections counter print(tabulate(counter)) this approach gives an error message: File "/Users/wf/Library/Python/3.8/lib/python/site-packages/tabulate.py", l... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | WolfgangFahl |
| hostname | github.com |
| expected-hostname | github.com |
| None | 2ff2d37f6b6f9a9c91f18d54cf30d0d9e07d017eaab345cd5e6fb05715e02284 |
| 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 | 9bfe6f375bb68c197004966721f6e7a3a0843cf5 |
| ui-target | canary-2 |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width