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
The playground had a page per individual feature but nothing showing tsb used end-to-end on realistic data. This adds an Examples section: 10 self-contained, in-browser tutorials covering common pandas workflows.
Hub
playground/examples.html — grid of 10 example cards.
playground/index.html — new "Real-World Examples" section above the feature roadmap, linking to the hub.
Examples (playground/example_*.html)
Each page has 1–3 editable code blocks with inline realistic data, a Python equivalent tab, and ASCII bar-chart output rendered through console.log.
Example
Domain
APIs exercised
💰 Sales Dashboard
Retail analytics
readCsv, groupby().agg, nlargestDataFrame
📈 Stock Returns
Finance
pctChangeSeries, Series.rolling().mean/std, SMA crossover
🌦️ Weather Trends
Climate
dt accessor, groupby
👥 Customer Cohorts
SaaS growth
groupby().size, cumsum, pctChangeSeries
📊 Survey Cross-tabs
Research
crosstab with normalize: "index"
🪵 Server Log Analysis
DevOps
Series.map, groupby, pivot, fillna
🧪 A/B Test Results
Experimentation
groupby().agg, lift, describe
🌐 Web Analytics Pivot
Marketing
pivotTable (source × device)
⚽ Sports Standings
Sports analytics
concat, groupby, rankSeries, sortValues
🏷️ Pricing Buckets
E-commerce
cut with labels, valueCounts
All pages reuse the existing playground-runtime.js (TS-compiler + tsb bundle + transparent-textarea highlighting) — no runtime changes.
Charts
Examples render visual output by emitting unicode block bars through console.log, which the runtime captures and shows in the output panel:
A Playwright harness loads all 11 new pages, clicks every Run button, and asserts every block runs without error and produces output (22/22 blocks pass). The examples use only existing public tsb APIs; no src/ changes.
This PR was 15 commits behind main, so I merged main into the branch (36c66d6). The merge was clean — no conflicts.
The previously failing checks (Playground E2E, Test & Lint, Validate Python Examples) may have been caused by drift from main. CI is now running on the updated branch; if any checks are still failing, Evergreen will address them on the next run.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The playground had a page per individual feature but nothing showing tsb used end-to-end on realistic data. This adds an Examples section: 10 self-contained, in-browser tutorials covering common pandas workflows.
Hub
playground/examples.html— grid of 10 example cards.playground/index.html— new "Real-World Examples" section above the feature roadmap, linking to the hub.Examples (
playground/example_*.html)Each page has 1–3 editable code blocks with inline realistic data, a Python equivalent tab, and ASCII bar-chart output rendered through
console.log.readCsv,groupby().agg,nlargestDataFramepctChangeSeries,Series.rolling().mean/std, SMA crossoverdtaccessor,groupbygroupby().size,cumsum,pctChangeSeriescrosstabwithnormalize: "index"Series.map,groupby,pivot,fillnagroupby().agg, lift,describepivotTable(source × device)concat,groupby,rankSeries,sortValuescutwith labels,valueCountsAll pages reuse the existing
playground-runtime.js(TS-compiler + tsb bundle + transparent-textarea highlighting) — no runtime changes.Charts
Examples render visual output by emitting unicode block bars through
console.log, which the runtime captures and shows in the output panel:Verification
A Playwright harness loads all 11 new pages, clicks every Run button, and asserts every block runs without error and produces output (22/22 blocks pass). The examples use only existing public tsb APIs; no
src/changes.