Title: 0.10.0 has improper handling of pd.NA values when the dtype is, e.g., float32[pyarrow] · Issue #429 · astanin/python-tabulate · GitHub
Open Graph Title: 0.10.0 has improper handling of pd.NA values when the dtype is, e.g., float32[pyarrow] · Issue #429 · astanin/python-tabulate
X Title: 0.10.0 has improper handling of pd.NA values when the dtype is, e.g., float32[pyarrow] · Issue #429 · astanin/python-tabulate
Description: (This is in the same region as code as the AI-generated report #428.) Here's a(n approximately) minimal reproducing example: # test_reprex.py import pytest import pandas as pd from tabulate import tabulate def test_reprex(): df = pd.Data...
Open Graph Description: (This is in the same region as code as the AI-generated report #428.) Here's a(n approximately) minimal reproducing example: # test_reprex.py import pytest import pandas as pd from tabulate import ...
X Description: (This is in the same region as code as the AI-generated report #428.) Here's a(n approximately) minimal reproducing example: # test_reprex.py import pytest import pandas as pd from tabulate imp...
Opengraph URL: https://github.com/astanin/python-tabulate/issues/429
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"0.10.0 has improper handling of pd.NA values when the dtype is, e.g., float32[pyarrow]","articleBody":"(This is in the same region as code as the AI-generated report https://github.com/astanin/python-tabulate/issues/428.)\n\nHere's a(n approximately) minimal reproducing example:\n\n```python\n# test_reprex.py\nimport pytest\nimport pandas as pd\nfrom tabulate import tabulate\n\n\ndef test_reprex():\n df = pd.DataFrame({\"id\": [\"a\"], \"x\": [pd.NA]}).astype(\n {\"id\": \"string\", \"x\": \"float32[pyarrow]\"}\n )\n with pytest.raises(TypeError):\n tabulate(df, maxcolwidths=10)\n```\n\nA stack trace:\n\n```\n.venv/lib/python3.11/site-packages/tabulate/__init__.py:2308: in tabulate\n list_of_lists = _wrap_text_to_colwidths(\n.venv/lib/python3.11/site-packages/tabulate/__init__.py:1704: in _wrap_text_to_colwidths\n if cell == \"\" or _isnumber(cell)\n ^^^^^^^^^^\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _\n\n> ???\nE TypeError: boolean value of NA is ambiguous\n```\n\nThis is with Python 3.11.15 and the following packages.\n\n```\nPackage Version\n--------------- -----------\niniconfig 2.3.0\nnumpy 2.4.4\npackaging 26.2\npandas 3.0.3\npluggy 1.6.0\npyarrow 24.0.0\npygments 2.20.0\npytest 9.0.3\npython-dateutil 2.9.0.post0\nruff 0.15.13\nsix 1.17.0\ntabulate 0.10.0\n```\n\nPlease let me know if you need or want more information.","author":{"url":"https://github.com/adamroyjones","@type":"Person","name":"adamroyjones"},"datePublished":"2026-05-15T12:55:41Z","url":"https://github.com/astanin/python-tabulate/issues/429"}
| 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:b6c85325-ec49-7993-d601-5dc6140f14eb |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 81C8:30C434:25D44F9:352151D:6AFF1621 |
| html-safe-nonce | 05fbb1d521752ef5d4267739b100b909517e9eabc7a8d610a132afb4a27476a9 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4MUM4OjMwQzQzNDoyNUQ0NEY5OjM1MjE1MUQ6NkFGRjE2MjEiLCJ2aXNpdG9yX2lkIjoiNzM4ODE0NTc1NDQ1MzI1MTYxNyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 356b2d27f283b3acc620912b8b9d23d4124484a75cbc4c6ff750a943a361033e |
| hovercard-subject-tag | issue:4454060532 |
| 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/429/issue_layout |
| twitter:image | https://opengraph.githubassets.com/4944b2e86defc2f09b4621577775896115d8fd4a13ea92123366a89c8ea295e5/astanin/python-tabulate/issues/429 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/4944b2e86defc2f09b4621577775896115d8fd4a13ea92123366a89c8ea295e5/astanin/python-tabulate/issues/429 |
| og:image:alt | (This is in the same region as code as the AI-generated report #428.) Here's a(n approximately) minimal reproducing example: # test_reprex.py import pytest import pandas as pd from tabulate import ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | adamroyjones |
| hostname | github.com |
| expected-hostname | github.com |
| None | dcfe2a442692c228642cbe77179775d6e0c6ab034e6bc05c1fd074690696a776 |
| 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 | 7fa20bbf4fd3396dfd52404c5947255a960d6fe2 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width