-
Notifications
You must be signed in to change notification settings - Fork 52
Open
Description
Tables provide benefits such as:
- styling with banded rows
- quick filtering, pivot tables and slicers
- column referencing in formulas
Possible API adding as_table to to_excel:
.to_excel(..., as_table=True):- Creates a table from A1 to last cell per https://openpyxl.readthedocs.io/en/stable/worksheet_tables.html
- Sets showFirstColumn if the frame has a single index
- Raises an error if
columnsis a MultiIndex (for now) or is not unique - Raises an error if
row_to_add_filtersis also set
.to_excel(..., as_table={"name": "TableStyleMedium9", showRowStripes=True}): same, but with a TableStyleInfo set.