⚡️ Tryprepforge
Data scientist Senior technical

A large e-commerce company wants to analyze customer behavior over time. You are tasked with aggregating transactions by customer ID to compute the total spent and number of purchases each month. Describe your approach using Pandas, including how you would handle date parsing and grouping by month.

Suggested Answer

Practice More Questions Like This

Generate unlimited interview questions with structured answers, code formatting, and immersive audio explanations.

No credit card required

More Data scientist Interview Prep

Link copied to clipboard