← Back to examples
🧪 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).
Skills: groupby().agg(), describe, lift calculation, boolean masks.
1 · Conversion rate by variant
Each row is one user session: which arm they were in, whether they converted, and order value.
Click ▶ Run to execute
Ctrl+Enter to run · Tab to indent
2 · Order value distribution per variant
Use describe to compare full distributions, not just means.
Click ▶ Run to execute
Ctrl+Enter to run · Tab to indent