best-practice-and-impact / gptables

Good Practice Tables - an XlsxWriter wrapper to write consistently formatted statistical tables to Excel.
http://gptables.rtfd.io
Other
35 stars 4 forks source link

Specify which tables to apply auto width to and which not to #212

Open rowanhemsi opened 1 year ago

rowanhemsi commented 1 year ago

Is your feature request related to a problem? Please describe. I would like to specify the column widths for some columns/tables and use the automatic width calculation for others

Describe the solution you'd like In addition to auto_width accepting True or False values, it could also take a dictionary input of sheet names and Boolean values

Describe alternatives you've considered Column widths could be manually overwritten between produce_workbook and close. This is currently possible using set_column but seems buggy, eg specifying a range "A:C".

Additional context Issue created following conversation with @jbarone90

rowanhemsi commented 1 year ago

TODO: check if additional_formatting meets this aim