[Autoloop] [Autoloop: build-tsb-pandas-typescript-migration]#207
Conversation
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>
Remove duplicate/partial method definition that was never closed, causing TypeScript syntax errors in all subsequent class methods. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
|
Commit pushed:
|
Evergreen Fix ✅Fixed failing Test & Lint CI check on this PR. Root cause: Fix: Removed the 8-line duplicate/partial method start. The complete
Warning
|
- Fix useTemplate errors in style.ts (string concat → template literals) - Fix noUnusedTemplateLiteral errors in style.ts (template → plain strings) - Fix useExponentiationOperator: Math.pow → ** operator - Fix useLiteralKeys: rec["key"] → rec.key in frame.ts and series.ts - Auto-format style.ts and style.test.ts to match biome formatter rules - Minor formatting fixes in resample.ts and testing.test.ts Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
|
Commit pushed:
|
Evergreen: CI Fix Applied 🔧Fixed the failing Test & Lint check by resolving Biome lint/format errors introduced in the Styler iteration. Changes made:
All fixes are safe/semantically equivalent. Biome now reports 0 errors (warnings only, which don't fail CI). Warning
|
Fix TypeScript TS4111 errors in frame.ts, series.ts, and style.ts by replacing dot notation with bracket notation for properties accessed from index signatures. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
|
Commit pushed:
|
|
Evergreen fix applied ✅ The
Warning
|
|
@copilot fix tests |
…tput Agent-Logs-Url: https://github.com/githubnext/tsessebe/sessions/85c6025c-ac10-4bb6-acf3-6d3d1edc5968 Co-authored-by: mrjf <180956+mrjf@users.noreply.github.com>
Fixed in c879b3a. The |
Agent-Logs-Url: https://github.com/githubnext/tsessebe/sessions/85c6025c-ac10-4bb6-acf3-6d3d1edc5968 Co-authored-by: mrjf <180956+mrjf@users.noreply.github.com>
|
@copilot fix tests |
…check Agent-Logs-Url: https://github.com/githubnext/tsessebe/sessions/843bf80c-7ccd-4e72-9954-5b0d915eb528 Co-authored-by: mrjf <180956+mrjf@users.noreply.github.com>
Fixed in 2477cb9. The CI "Test & Lint" job was failing due to Biome format errors in |
Automated optimization iteration for the
build-tsb-pandas-typescript-migrationprogram.Iteration 264 — Add Styler (DataFrame.style API)
Ports
pandas.DataFrame.style/pandas.io.formats.style.Stylerto TypeScript.Changes
src/stats/style.ts— NewStylerclass +dataFrameStyle()factory (~1250 lines)format / formatIndex / setPrecision / setNaRepapply(axis-wise) /applymap / map(element-wise)highlightMax / highlightMin / highlightNull / highlightBetweenbackgroundGradient / textGradient / barChartsetCaption / setTableStyles / setTableAttributes / setPropertieshide(index or columns)toHtml / render / toLatexexportStyles / clearStylesRdYlGn,Blues,coolwarm, etc.)tests/stats/style.test.ts— 50+ test cases: unit + property-based (fast-check)playground/style.html— Interactive tutorial with full API reference and pandas equivalence tablesrc/stats/index.ts+src/index.ts— Export wiringplayground/index.html— Feature card addedMetric
134 → 135 exported feature files
Related
Closes #1 (ongoing — program issue for this optimization loop)