Skip to content

Commit 2aca3bc

Browse files
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

File tree

playground/index.html

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -449,6 +449,11 @@ <h3><a href="testing.html" style="color: var(--accent); text-decoration: none;">
449449
<p>assertSeriesEqual / assertFrameEqual / assertIndexEqual — rich assertion helpers for use in test suites. Numeric tolerance, checkLike column-order mode, dtype checks, AssertionError with detailed diff messages. Mirrors pandas.testing.</p>
450450
<div class="status done">✅ Complete</div>
451451
</div>
452+
<div class="feature-card">
453+
<h3><a href="style.html" style="color: var(--accent); text-decoration: none;">🎨 Styler — DataFrame Style API</a></h3>
454+
<p>dataFrameStyle(df) · highlightMax / highlightMin / highlightNull / highlightBetween · backgroundGradient / textGradient · barChart · format / formatIndex · apply / applymap / map · setCaption / setTableStyles / hide · toHtml / toLatex. Mirrors pandas.DataFrame.style (Styler).</p>
455+
<div class="status done">✅ Complete</div>
456+
</div>
452457
</section>
453458
<div class="features-grid">
454459
<div class="feature-card">

0 commit comments

Comments
 (0)