

0 / 2 embers
0 / 3000 xp
click for more info
Complete a lesson to start your streak
click for more info
Difficulty: 9
click for more info
Not enough gems
Cost: 6 gems
1: Event Data
incomplete
2: Event Structure
incomplete
3: Event Counting
incomplete
4: Resample
incomplete
5: Resample Aggregations
incomplete
6: Active Users
incomplete
7: Time Patterns
incomplete
8: Funnel Metrics
incomplete
9: Conversion Rates
incomplete
10: Funnel Drop-Offs
incomplete
11: Ordered Funnels
incomplete
12: Cohorts
incomplete
13: Cohort Retention
incomplete
14: Rolling Metrics
incomplete
15: Growth Rates
incomplete
Back
ctrl+,
Next
ctrl+.
This lesson's interactive features are locked, please to keep using them
The "conversion rate" is the percentage of users who complete a desired action, like signing up. If 100 people visit your homepage and 10 sign up, the conversion rate is 10%.
If only 5 of those signups submit a lesson, the "step conversion rate" from signup to lesson submission is 50%, but the "overall conversion rate" from homepage visit to lesson submission is only 5%.
| Step | Users | Overall conversion | Conversion from previous step |
|---|---|---|---|
| Homepage visit | 100 | 100% | - |
| Signup | 10 | 10% | 10% |
| Lesson submission | 5 | 5% | 50% |
SnackStack's growth team wants a simple, unordered check of how many users appear in one funnel step compared to another.
Complete the calculate_conversion_rate function. It accepts an events DataFrame (user_id and step columns) plus a from_step and a to_step, and returns the conversion rate between them as a float.