Ë
    ý�Dj  ã                   ó:   — d dl ZddlmZ ddlmZ dgZdZdefd	„Zy)
é    Né   )ÚDTYPEé   )Úfetch_from_web_or_diskÚload_gasolinez,http://alkaline-ml.com/datasets/gasoline.csvFc                 óv   — t        t        dd¬«      j                  |«      }| s|S t        j                  |«      S )a.  Weekly US finished motor gasoline products

    A weekly time series of US finished motor gasoline products supplied (in
    thousands of barrels per day) from February 1991 to May 2005.

    Parameters
    ----------
    as_series : bool, optional (default=False)
        Whether to return a Pandas series. If True, the index will be set to
        the observed years/months. If False, will return a 1d numpy array.

    dtype : type, optional (default=np.float64)
        The type to return for the array. Default is np.float64, which is used
        throughout the package as the default type.

    Notes
    -----
    The seasonal periodicity of this example is rather difficult, since it's
    not an integer. To be exact, the periodicity is ``365.25 / 7``
    (~=52.1785714285714). To fit the best possible model to this data, you'll
    need to explore using exogenous features

    See Also
    --------
    :class:`pmdarima.preprocessing.exog.FourierFeaturizer`

    Examples
    --------
    >>> from pmdarima.datasets import load_gasoline
    >>> load_gasoline()
    array([6621. , 6433. , 6582. , ..., 9024. , 9175. , 9269. ])

    >>> load_gasoline(True).head()
    0    6621.0
    1    6433.0
    2    6582.0
    3    7224.0
    4    6875.0
    dtype: float64

    References
    ----------
    .. [1] http://www.eia.gov/dnav/pet/hist/LeafHandler.ashx?n=PET&s=wgfupus2&f=W
    .. [2] https://robjhyndman.com/hyndsight/forecasting-weekly-data/

    Returns
    -------
    rslt : array-like, shape=(n_samples,)
        The gasoline dataset. There are 745 examples.
    ÚgasolineT)Úcache)r   ÚurlÚastypeÚpdÚSeries)Ú	as_seriesÚdtypeÚrslts      ú^C:\Crop_Prediction\Backend\crop-ai-system\venv\Lib\site-packages\pmdarima/datasets/gasoline.pyr   r      s4   € ôf "¤# z¸Ô>×EÑEÀeÓL€DÙØˆä�9‰9�T‹?Ðó    )	Úpandasr   Úcompat.numpyr   Ú_baser   Ú__all__r   r   © r   r   ú<module>r      s/   ðó å  Ý )ð ð€ð 5€ð "¨ô 7r   