Maven Analytics Data Drill #6 — Streak Leaderboard (Python Solution) This month’s Maven Data Drill was focused on time-based data wrangling and analysis. My Approach using Python (pandas): - Loaded and normalized the data to remove time components using .dt.normalize(). - Used groupby("user_id") to collect each user’s unique lesson dates into a set, ensuring duplicates were removed. - Filtered users who were active on 2025-09-28. - For each user, looped backward from the target date (2025-09-28) and counted consecutive active days until a break was found. - Combined the results into a leaderboard showing the top 10 users with the longest active streaks. You can view my full Python solution and notebook here: Google Colab Link: https://lnkd.in/dzarex2Y #Data #Analytics #Python #Pandas #DataWrangling #Leaderboard #LearningAnalytics #data #analytics #mavendatadrill

Great work on this data drill, PRANAV SHARMA! Thanks for sharing your solution with us!

See more comments

To view or add a comment, sign in

Explore content categories