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

This crashes tabulate: ``` In [2]: tabulate.tabulate([], headers=['a', 'b', 'c', 'd', 'e'], colalign=['left', 'left', 'left', 'left', 'left']) --------------------------------------------------------------------------- IndexError Traceback (most recent call last) Cell In[2], line 1 ----> 1...

## Description Error occurs when I print a table larger than my console output. ![image](https://github.com/astanin/python-tabulate/assets/42783707/3e6f7baa-d8ae-4f4a-b6cf-90460c846320) ***Problem, I do not know in advance the number of columns in my tabulate table***...

I'm outputting data in Swedish numeric format, where the decimal point is "," (and the thousands separator is " "). I would like to be handle to have the smart...

## Description I colorized my float with basic Python feature : ```python row_data["reference"] = "\033[31m{}\033[0m".format(value_data_ref) ``` After few manipulations, I put these floats in a column of my Pandas Dataframe....

This code: ```python import numpy as np from tabulate import tabulate data = [[np.ones(1)]] print(tabulate(data)) ``` Throws a `FutureWarning` or a `ValueError` due to the comparison with `SEPARATING_LINE`. Fixes https://github.com/astanin/python-tabulate/issues/287

```python import numpy as np from tabulate import tabulate data = [[np.ones(1)]] print(tabulate(data)) ``` Yields this warning from numpy: ``` /Users/enos/temp/venv/lib/python3.10/site-packages/tabulate/__init__.py:107: FutureWarning: elementwise comparison failed; returning scalar instead, but in...

May I suggest adding a "matrix" table format. I'm using this one to [render sparse matrices to text](https://github.com/alugowski/matrepr) and it works quite well: ```python TableFormat( lineabove=Line("┌", " ", " ",...

I am taking real time measurements from an ADC in a while loop, so I print one line at a time. For example, ``` while True: {measure data} table=[[148, 36,...

Hi, I need to have integer number in Italian representation, in which the thousand separator is the `.`. For `9200`, in Italy we have `9.200`. If run `print(tabulate([["a",9200]], intfmt=","))` I...