You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+7-5Lines changed: 7 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -102,7 +102,7 @@ Returns a `PivotTableResult` dict containing the current `config` state.
102
102
|`on_config_change`|`Callable[[], None] \| None`|`None`| Called when the user changes the pivot config interactively, including toolbar and header-menu actions. |
103
103
|`enable_drilldown`|`bool`|`True`| Show an inline drill-down panel with source records when a cell is clicked. |
104
104
|`locked`|`bool`|`False`| Viewer mode with exploration enabled. Toolbar config controls are read-only, viewer-safe actions like data export and group expand/collapse remain available, and header-menu sorting/filtering/`Show Values As` plus drill-down still work. |
105
-
|`export_filename`|`str \| None`|`None`| Base filename (without extension) for exported files. Date and extension are appended automatically. Defaults to `"pivot-table"`. |
105
+
|`export_filename`|`str \| None`|`None`| Base filename (without extension) for exported files (.xlsx, .csv, .tsv). Date and extension are appended automatically. Defaults to `"pivot-table"`. |
106
106
107
107
> **Frontend-only interactions:** Column resize (drag header edges) and fullscreen mode (toolbar expand icon) are available automatically when `interactive=True`. No additional Python parameters are needed.
108
108
@@ -431,11 +431,13 @@ Hover over a parent column header to reveal the collapse toggle.
431
431
432
432
### Data Export
433
433
434
-
Export the pivot table as CSV, TSV, or copy to clipboard. Available via the toolbar utility menu (download icon) whenever the interactive toolbar is shown, including locked viewer mode.
434
+
Export the pivot table as Excel, CSV, TSV, or copy to clipboard. Available via the toolbar utility menu (download icon) whenever the interactive toolbar is shown, including locked viewer mode.
435
435
436
-
-**Format**: CSV, TSV, or Clipboard (tab-separated for pasting into spreadsheets)
436
+
-**Format**: Excel (.xlsx), CSV, TSV, or Clipboard (tab-separated for pasting into spreadsheets)
437
437
-**Content**: Formatted (display values with currency, percentages, etc.) or Raw (unformatted numbers)
438
-
-**Filename**: Customizable via `export_filename`. The date (`YYYY-MM-DD`) and file extension are appended automatically. Defaults to `"pivot-table"` (e.g. `pivot-table_2026-03-09.csv`).
438
+
-**Filename**: Customizable via `export_filename`. The date (`YYYY-MM-DD`) and file extension are appended automatically. Defaults to `"pivot-table"` (e.g. `pivot-table_2026-03-09.xlsx`).
439
+
440
+
Excel export produces a professionally styled workbook with merged column headers, bold totals/subtotals, number formatting, banded rows, frozen panes (headers stay visible when scrolling), and row dimension merging that matches the rendered table layout. Sort order, active filters, and show-values-as percentages are all preserved.
439
441
440
442
Export always outputs the full expanded table regardless of any collapsed row/column groups.
441
443
@@ -513,7 +515,7 @@ When `interactive=True`, hovering over the top-right of the toolbar reveals util
513
515
|**Swap**| Transposes row and column dimensions |
514
516
|**Copy Config**| Copies the current config as JSON to clipboard |
515
517
|**Import Config**| Paste a JSON config to apply |
516
-
|**Export Data**| Open the export popover (CSV / TSV / Clipboard). Use `export_filename` to customize the download filename. |
518
+
|**Export Data**| Open the export popover (Excel / CSV / TSV / Clipboard). Use `export_filename` to customize the download filename. |
517
519
|**Fullscreen** (expand icon) | Toggles fullscreen mode — the table fills the entire viewport. Press Escape or click the collapse icon to exit. |
518
520
|**Settings** (gear icon) | Opens a popover with display toggles: Row Totals, Column Totals, Subtotals, Repeat Labels, Sticky Headers, and Expand/Collapse All group controls |
0 commit comments