A sales table only has a row for a day something sold. A model needs a row for every day, including the zeros, and where each store's calendar starts is a fact about that store, not a fact about the dataset.
Write fill_missing_days(df). Given a DataFrame of daily sales with store_id, date (datetime64) and sales (float), return a DataFrame with one row for every calendar day from that store's own first recorded date to its own last recorded date, inclusive — filling any day with no recorded sale as 0.0.
You have read the opening. The rest is free with a Bezen account, and no card is needed.
Behind the sign-in