load_hierarchical_sales_toydata#
- load_hierarchical_sales_toydata()[source]#
Return hierarchical sales toy data to demonstrate hierarchical forecasting.
Return data covers 5 years of monthly sales data for 2 product lines, and 4 product groups.
Hierarchical structure:
- Product line 1: Food preparation
Product group 1A: Hobs
Product group 1B: Ovens
- Product line 2: Food preservation
Product group 2A: Fridges
Product group 2B: Freezers
- Returns:
- hierarchypd.DataFrame in pd_multiindex_hier mtype format
Product hierarchy with row MultiIndex “Product line”, “Product group”, “Date”. Column “Sales” contains total sales for each product group in monthly period.