U
    Kvf                     @   sH   d Z ddlmZ dZdZe ZdZdZeZ	dZ
dd	 Zd
d Zdd ZdS )zYearly sunspots data 1700-2008    )utilsZrestructuredtextzThis data is public domain.z
http://www.ngdc.noaa.gov/stp/solar/solarda3.html

The original dataset contains monthly data on sunspot activity in the file
./src/sunspots_yearly.dat.  There is also sunspots_monthly.dat.
zNYearly (1700-2008) data on sunspots from the National
Geophysical Data Center.z::

    Number of Observations - 309 (Annual 1700 - 2008)
    Number of Variables - 1
    Variable name definitions::

        SUNACTIVITY - Number of sunspots for each year

    The data file contains a 'YEAR' variable that is not returned by load.
c                  C   s0   t  } | | jj}tj| t| j|dd}|S )Nvolume)datanamesendogZ
endog_name)	_get_dataZ	set_indexZYEARZSUNACTIVITYduZDatasetlistcolumns)r   r   Zdataset r   F/tmp/pip-unpacked-wheel-2v6byqio/statsmodels/datasets/sunspots/data.pyload_pandas    s     r   c                   C   s   t  S )a[  
    Load the yearly sunspot data and returns a data class.

    Returns
    -------
    Dataset
        See DATASET_PROPOSAL.txt for more information.

    Notes
    -----
    This dataset only contains data for one variable, so the attributes
    data, raw_data, and endog are all the same variable.  There is no exog
    attribute defined.
    )r   r   r   r   r   load)   s    r   c                   C   s   t tdtS )Nzsunspots.csv)r   Zload_csv__file__Zastypefloatr   r   r   r   r   ;   s    r   N)__doc__Zstatsmodels.datasetsr   r   Z__docformat__Z	COPYRIGHTZTITLEZSOURCEZ
DESCRSHORTZ	DESCRLONGZNOTEr   r   r   r   r   r   r   <module>   s   	