
    "g                     B    d Z ddlmZ dZdZe ZdZdZeZ	dZ
d Zd	 Zd
 Zy)zYearly sunspots data 1700-2008    )utils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                      t               } | j                  | j                        j                  }t	        j
                  | t        | j                        |d      }|S )Nvolume)datanamesendog
endog_name)	_get_data	set_indexYEARSUNACTIVITYduDatasetlistcolumns)r   r	   datasets      _/var/www/dash_apps/app1/venv/lib/python3.12/site-packages/statsmodels/datasets/sunspots/data.pyload_pandasr       sF    ;DNN499%11Ejjd$t||*<$;GN    c                      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   loadr   )   s     =r   c                  \    t        j                  t        d      j                  t              S )Nzsunspots.csv)r   load_csv__file__astypefloatr   r   r   r   r   ;   s    ;;x077>>r   N)__doc__statsmodels.datasetsr   r   __docformat__	COPYRIGHTTITLESOURCE
DESCRSHORT	DESCRLONGNOTEr   r   r   r   r   r   <module>r(      sE    $ ,"/	
 		$?r   