← Back to examples
🛡️ Marketplace Fraud Triage
Scenario: A payments risk team needs a repeatable notebook-style workflow: join live transactions to merchant chargeback history, estimate loss exposure, and produce a review queue plus a segment/device heatmap.
Skills you'll use: merge, derived columns, boolean filters, groupby().agg(), nlargestDataFrame, pivotTableFull.
1 · Join risk signals and score transactions
Blend transaction-level events with merchant risk metadata, then calculate expected loss and a risk score.
Click ▶ Run to execute
Ctrl+Enter to run · Tab to indent
2 · Build a fraud heatmap and merchant leaderboard
Summarize exposure by segment/device and rank merchants by estimated loss.
Click ▶ Run to execute
Ctrl+Enter to run · Tab to indent