tabulate
tabulate copied to clipboard
Is it possible to show a table title in the border?
When showing multiple tables it would be nice to see a table name at the top of the table, e.g. in the upper border. At the moment I embed the table in an outer table and put a string as first row as the title. But then you handle with 2 tables.
Currently, the way to do this is definitely hacky - as you say, you can add the title as the first row and apply some formatting tricks.
I think it makes sense to add this as a feature.
- Be able to set the title for the table
- Be able to set the position of the title - above or below the table
- Be able to set the alignment of the title - left, center or right
- Be able to set the font style and color of the title.
All of this can be added to either the Table class and then it should be easy to add the title.