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
+6-3Lines changed: 6 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -275,6 +275,7 @@ Typed `date` and `datetime` fields are treated as hierarchy-capable dimensions w
275
275
- Alternate grouping: `Week` is available from the header menu, but it is not part of the default drill path.
276
276
- Explicit override precedence: explicit `date_grains[field]` beats interactive state, which beats the adaptive auto default.
277
277
- Explicit opt-out: `date_grains[field] = None` preserves the raw/original date values for that field.
278
+
- Hierarchical parent headers with +/- collapse/expand currently render on the **column axis**. Row-side temporal hierarchy parity is planned separately.
278
279
279
280
```python
280
281
# Adaptive date hierarchy: grain chosen from the data's date range
@@ -325,6 +326,8 @@ Once a temporal field is active on an axis, open its header menu to:
325
326
- switch directly to `Week`,
326
327
- choose `Original` to persist a raw-date opt-out for that field.
327
328
329
+
When a temporal field is on `columns`, parent headers such as `2024` or `Q1 2024` can be collapsed with the inline +/- toggle. This is a view-only collapse: the underlying leaf buckets remain the data/export contract.
330
+
328
331
Grouped buckets export as grouped labels such as `Jan 2024`, `Q1 2024`, or `2024-W03`; they are intentionally not exported as fake raw Excel dates.
329
332
330
333
### Number Format Patterns
@@ -500,7 +503,7 @@ st_pivot_table(
500
503
)
501
504
```
502
505
503
-
Hover over a parent column header to reveal the collapse toggle.
506
+
Hover over a parent column header to reveal the collapse toggle. Temporal date hierarchies use the same pattern on the column axis, with inline +/- controls on parent date headers.
504
507
505
508
### Data Export
506
509
@@ -512,7 +515,7 @@ Export the pivot table as Excel, CSV, TSV, or copy to clipboard. Available via t
512
515
513
516
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. Conditional formatting rules (color scales, data bars, and threshold highlights) are translated to native Excel conditional formatting, so the exported file renders them natively without macros.
514
517
515
-
Export always outputs the full expanded table regardless of any collapsed row/column groups.
518
+
Export always outputs the full expanded table regardless of any collapsed row/column groups, including collapsed temporal date parents.
The example app (`streamlit_app.py`) contains 17 sections covering the major features and usage patterns with interactive examples and inline documentation.
725
+
The example app (`streamlit_app.py`) contains 18 sections covering the major features and usage patterns with interactive examples and inline documentation.
0 commit comments