FavoritaData
Favorita Data.
The processed Favorita dataset of grocery contains item sales daily history with additional
information on promotions, items, stores, and holidays, containing 371,312 series from
January 2013 to August 2017, with a geographic hierarchy of states, cities, and stores.
This wrangling matches that of the DPMN paper.
References:
FavoritaData.load
Returns:
Example:
FavoritaData.load_preprocessed
Returns:
Example
Auxiliary Functions
This auxiliary functions are used to efficiently create and wrangle Favorita’s series.Numpy Wrangling
numpy_balance
Returns:
numpy_ffill
ffill that fills missing values.
Fills missing values in an array by propagating the last non-missing value forward.
For example, if the array has the following values:
ffill method would fill the missing values as follows:
Returns:
numpy_bfill
bfill that fills missing values.
Fills missing values in an array by propagating the last non-missing value backwards.
For example, if the array has the following values:
bfill method would fill the missing values as follows:
Returns:
one_hot_encoding
Returns:
nested_one_hot_encoding
Returns:
get_levels_from_S_df
Returns:
distance_to_holiday
make_holidays_distance_df
CodeTimer
Favorita200
Favorita500
FavoritaComplete
FavoritaRawData
Favorita Raw Data.
Raw subset datasets from the Favorita 2018 Kaggle competition.
This class contains utilities to download, load and filter portions of the dataset.
If you prefer, you can also download original dataset available from Kaggle directly:
FavoritaRawData.download
Examples:

