Title: `floatfmt` doesn't work when `tablefmt="pretty"` · Issue #71 · astanin/python-tabulate · GitHub
Open Graph Title: `floatfmt` doesn't work when `tablefmt="pretty"` · Issue #71 · astanin/python-tabulate
X Title: `floatfmt` doesn't work when `tablefmt="pretty"` · Issue #71 · astanin/python-tabulate
Description: Reproduced with tabulate==0.8.7 import tabulate table = tabulate.tabulate( [ [1.10000001], ], tablefmt="pretty", floatfmt=".3f", ) print(table) yields +------------+ | 1.10000001 | +------------+ instead of +-------+ | 1.100 | +-------+
Open Graph Description: Reproduced with tabulate==0.8.7 import tabulate table = tabulate.tabulate( [ [1.10000001], ], tablefmt="pretty", floatfmt=".3f", ) print(table) yields +------------+ | 1.10000001 | +------------+ i...
X Description: Reproduced with tabulate==0.8.7 import tabulate table = tabulate.tabulate( [ [1.10000001], ], tablefmt="pretty", floatfmt=".3f", ) print(table) yields +------------+ | 1.1000000...
Opengraph URL: https://github.com/astanin/python-tabulate/issues/71
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"`floatfmt` doesn't work when `tablefmt=\"pretty\"`","articleBody":"Reproduced with `tabulate==0.8.7`\r\n\r\n```python\r\nimport tabulate\r\n\r\n\r\ntable = tabulate.tabulate(\r\n [\r\n [1.10000001],\r\n ],\r\n tablefmt=\"pretty\",\r\n floatfmt=\".3f\",\r\n)\r\n\r\nprint(table)\r\n```\r\n\r\nyields\r\n\r\n```\r\n+------------+\r\n| 1.10000001 |\r\n+------------+\r\n```\r\n\r\ninstead of\r\n\r\n```\r\n+-------+\r\n| 1.100 |\r\n+-------+\r\n```","author":{"url":"https://github.com/TalAmuyal","@type":"Person","name":"TalAmuyal"},"datePublished":"2020-07-19T08:28:41Z","url":"https://github.com/astanin/python-tabulate/issues/71"}
| 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:1c798e6c-3eeb-a4b2-c3ec-14c92d1939b0 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B0F4:84C13:27B37D6:3590672:6AFF068E |
| html-safe-nonce | 058a60879ef661e43240b42a6419b151954485cb6fc37fca735d37f99b4ece2f |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCMEY0Ojg0QzEzOjI3QjM3RDY6MzU5MDY3Mjo2QUZGMDY4RSIsInZpc2l0b3JfaWQiOiI0MjU3Njg3MjIyMTgzOTg2ODMwIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 42ba878822b8308fae229fbd8cb4e995191e0b70ad908d924ddc214e48fa6f3f |
| hovercard-subject-tag | issue:660691736 |
| 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/71/issue_layout |
| twitter:image | https://opengraph.githubassets.com/19417fef4a76dc8b1b8acd142d00eb27e3ca2f2667fc3e96c8e6957736a30b38/astanin/python-tabulate/issues/71 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/19417fef4a76dc8b1b8acd142d00eb27e3ca2f2667fc3e96c8e6957736a30b38/astanin/python-tabulate/issues/71 |
| og:image:alt | Reproduced with tabulate==0.8.7 import tabulate table = tabulate.tabulate( [ [1.10000001], ], tablefmt="pretty", floatfmt=".3f", ) print(table) yields +------------+ | 1.10000001 | +------------+ i... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | TalAmuyal |
| hostname | github.com |
| expected-hostname | github.com |
| None | e175723046b04f7f56d65eb0df6b02050aa2c8749bb60cf697165ebbe083484a |
| 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 | 3112cca354e0a8c46dced86aca04188cc1e9d46d |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width