Questions tagged [python-tabulate]

4 questions
0
votes
1 answer

Colorama not working with Tabulate to display colored output in Python

I am attempting to create a colorful table in Python using the tabulate and colorama libraries. However, despite having both libraries installed and confirmed that colorama works fine with other programs, the output is not colored as…
0
votes
2 answers

to_markdown doesn't pass intfmt to tabulate

Comma separation seems to work fine without a Pandas DataFrame. Executing from tabulate import tabulate print(tabulate([['2023m06',2000],['2023m05',100000]], tablefmt='rounded_grid', intfmt=',')) gives…
aeroNotAuto
  • 260
  • 3
  • 13
0
votes
0 answers

Unable to display data in table using tabulate

I wrote the following code to extract commit information from a GitHub repos. I've used the tabulate module to display the data in tabular form. I'm getting UnicodeEncodeError: 'charmap' codec can't encode characters in position 0-5346: character…
0
votes
1 answer

How to use tabulate.SEPARATING_LINE when passing data as a list of dictionaries?

I'm trying to insert a SEPARATING_LINE in a tabulate in Python. The example with lists works perfectly: import tabulate print(tabulate.tabulate([["A", 200], ["B", 100], tabulate.SEPARATING_LINE, ["Total", 4]], headers=["Col1", "Col2"])) yields: Col1…
Raúl Salinas-Monteagudo
  • 3,412
  • 1
  • 24
  • 22