← All Python interview questions
Forward-fill sparse inventory snapshots to a daily series
MediumDates & Time SeriesBigBasketWalmart
Inventory is only logged when it changes, but the dashboard needs a value for every day.
Write daily_stock(df) that returns a Series of stock on hand for every calendar day between the first and last snapshot, carrying the last known value forward.
More Dates & Time Series questions
Asked at BigBasket
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