← All Python interview questions

Resample daily orders into a monthly summary

MediumDates & Time SeriesMyntraBigBasket

Ops wants monthly totals from a daily order log, including months where nothing happened.

Write monthly_totals(df) that returns a Series indexed by month-end dates with the summed amount per month, and 0.0 for months with no orders.

Practising alone only goes so far — our live cohorts pair Python and Pandas depth with dashboards, agentic analytics projects and mock interviews.

Explore the program