load_shampoo_sales

load_shampoo_sales(return_array=True)[source]

Load the shampoo sales univariate time series dataset for forecasting.

Deprecated since version 1.6.0: Deprecated and will be removed in v1.7.0. Use load_airline for a monthly univariate forecasting series.

Parameters:
return_arraybool, default=True

return series as an np.ndarray if True, else as a pd.Series.

Returns:
np.ndarray or pd.Series

Shampoo sales dataset

Notes

This dataset describes the monthly number of sales of shampoo over a 3 year period. The units are a sales count.

Dimensionality: univariate Series length: 36 Frequency: Monthly Number of cases: 1

References

[1]

Makridakis, Wheelwright and Hyndman (1998) Forecasting: methods

and applications,

John Wiley & Sons: New York. Chapter 3.

Deprecated since version 1.6.0: load_shampoo_sales and the ShampooSales dataset are deprecated and will be removed in v1.7.0. It is unused elsewhere in aeon; use load_airline for a monthly univariate forecasting series.

Examples

>>> from aeon.datasets import load_shampoo_sales
>>> y = load_shampoo_sales()
>>> type(y)
<class 'numpy.ndarray'>
>>> y = load_shampoo_sales(return_array=False)
>>> type(y).__name__
'Series'