โ† Back to roadmap

๐Ÿ“š Real-World Examples

Each example is a complete, real-world workflow built with tsb โ€” the kind of analysis you'd typically reach for pandas to do. Click any card to open its interactive page; every code block runs live in your browser.

The dataset in each example is small, inline, and editable โ€” change the numbers and re-run to see the analysis update instantly.

๐Ÿ’ฐ

Sales Dashboard

Scenario: You're an analyst at a regional retail chain. Q1 sales just landed in a CSV. Find top-performing regions and products, then visualize revenue with a quick ASCII bar chart.

๐Ÿ“ˆ

Stock Returns Analysis

Scenario: A junior quant wants to inspect a price history: compute daily returns, a 5-day rolling mean and volatility, and detect a simple moving-average crossover signal.

๐ŸŒฆ๏ธ

Monthly Weather Trends

Scenario: A climate journalist has a year of daily temperature observations and wants monthly averages, the hottest month, and a quick visual of the warming curve.

๐Ÿ‘ฅ

Customer Signup Cohorts

Scenario: A SaaS growth team wants to know how many customers signed up each month, the cumulative customer base, and which cohort grew fastest.

๐Ÿ“Š

Survey Cross-tab Analysis

Scenario: You ran a 30-person survey asking which programming language people prefer, broken down by experience level. Build a contingency table and a percentage breakdown.

๐Ÿชต

Server Access Log Analysis

Scenario: An on-call engineer wants to know how many 5xx errors hit the API per hour during the last incident, broken down by status code class.

๐Ÿงช

A/B Test Results

Scenario: A product manager just shipped a new checkout button (variant B) to half of users. Compare conversion rates and order values between the control (A) and the variant (B).

๐ŸŒ

Web Analytics Pivot Table

Scenario: A digital marketer has a stream of pageview events tagged with traffic source and device type. Pivot the data to see how each source performs across devices.

โšฝ

Sports League Standings

Scenario: An amateur football league played a round-robin. Build the league table from match results: wins, goal difference, points, and final rank.

๐Ÿท๏ธ

Product Pricing Tiers

Scenario: An e-commerce merchandiser wants to bucket the catalogue into 4 price tiers (Budget / Mid / Premium / Luxury) and see the count and average margin per tier.

๐Ÿ›ก๏ธ

Marketplace Fraud Triage

Scenario: A payments risk team joins transactions with merchant chargeback history, scores expected loss, and builds a segment/device heatmap plus a manual review queue.

๐Ÿ“ฆ

Inventory Replenishment Planning

Scenario: A retail operations analyst combines daily sell-through with SKU master data to calculate reorder points and summarize replenishment risk.

๐Ÿ“ฃ

Marketing Attribution ROAS

Scenario: A growth team reshapes campaign spend, joins conversion facts, and compares return on ad spend by region and channel.