python-tabulate icon indicating copy to clipboard operation
python-tabulate copied to clipboard

Pretty-print tabular data in Python, a library and a command-line utility. Repository migrated from bitbucket.org/astanin/python-tabulate.

Results 155 python-tabulate issues
Sort by recently updated
recently updated
newest added

Many table formats (tablefmt=) experience the following error when redirecting outputs to STDOUT by using the > character on the command line. ``` Traceback (most recent call last): File "c:\Py.cmb\tables\table_try.py",...

Modifies TableFormat to take optional parameters, and passes kwargs from simple_separated_format to TableFormat

breaking changes

Follow up to: https://github.com/pandas-dev/pandas/issues/59588 `tabulate` can handle lists `[1, 2]` as cell values but not numpy arrays `np.array([1, 2])`: ```python >>> print(tabulate([[[1, 2], 3]])) ------ - [1, 2] 3 ------...

It appears that tabulate wants at least 3 spaces between a column delimiter and the header text (in the opposite direction indicated by `colalign`): ```python print(tabulate([["First name", "Last name"], ["John",...

`maxcolwidths=10` expect behaviours when `tablefmt='simple'` ``` color value row -- --------- ------- ----- 0 redred 1.2 0 redred redredr edredred redredred 1 green 1 1 2 red 0 2 3...

Added check that `showindex_is_a_str` before comparing `showindex == "default"`, which causes an error when `showindex` is an iterable.

needs tests

Numbers are cast to `float` before `format()`ing, which prevents custom formatting logic provided by subclasses. [tabulate/\_\_init\_\_.py#L1350](https://github.com/astanin/python-tabulate/blob/232ed74/tabulate/__init__.py#L1350) ## Example ```py from tabulate import tabulate from prefixed import Float tabulate([[Float(1)]], floatfmt='h') ```...

The HTML table format renderer outputs an empty table header row when there are no data rows. This differs unexpectedly from the default text format renderer which outputs the header...

Issue: colored string type throwing an error in casted_cell assignment because _type method not equipped to handle it. Can we either: - add a type check to see if cell...

By the [Typst project](https://typst.app/docs/) definition, "Typst is a new markup-based typesetting system for the sciences. It is designed to be an alternative both to advanced tools like LaTeX and simpler...