Commit 2aca3bc
Iteration 264: Add Styler (DataFrame.style API)
Port pandas.DataFrame.style / pandas.io.formats.style.Styler to TypeScript.
New module src/stats/style.ts provides:
- Styler class with fluent chaining API
- dataFrameStyle(df) factory function
- format / formatIndex / setPrecision / setNaRep
- apply (axis-wise) / applymap / map (element-wise)
- highlightMax / highlightMin / highlightNull / highlightBetween
- backgroundGradient / textGradient / barChart
- setCaption / setTableStyles / setTableAttributes / setProperties
- hide (index or columns)
- toHtml / render / toLatex
- exportStyles / clearStyles
Tests: 50+ test cases including unit, property-based (fast-check).
Playground: playground/style.html with complete API reference.
Run: https://github.com/githubnext/tsessebe/actions/runs/24838264967
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent 5792af4 commit 2aca3bc
6 files changed
Lines changed: 2312 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
449 | 449 | | |
450 | 450 | | |
451 | 451 | | |
| 452 | + | |
| 453 | + | |
| 454 | + | |
| 455 | + | |
| 456 | + | |
452 | 457 | | |
453 | 458 | | |
454 | 459 | | |
| |||
0 commit comments