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

No documentation found for formatting table columns, rows, and entries

Open laniakea opened this issue 2 years ago • 0 comments

Hi there, How is it possible to change the text/background colour of a table entry?

There are several scenarios which I'd like to know how to do this. Ideally this is what I want to do:

  • I'm using pandas dataframe (or a numpy array).
  • I want to change the colour of my table's entry, this can be a single element (defined by row and column) or an entire row or column, or I want to be able to set a condition to change the colours (or format the text: bold, italic, underline, change the back ground colour, text colour)
  • use simple_colors python library I could not find the documentation for this and couldn't find any examples online. I appreciate it if you can let us know if this is doable or not? If it is, would you please explain how this is done and give an example.

What I love about Tabulate is how simple and efficient it is and I hope this can be done easily.

Thanks

laniakea avatar Dec 20 '23 14:12 laniakea