U
    Kvfv                     @   sT   d Z ddlZddlmZ dZdZdZdZ	dZ
e
d	 Zd
Zdd Zdd Zdd ZdS )zNile River Flows.    N)utilsZrestructuredtextzThis is public domain.z$Nile River flows at Ashwan 1871-1970z
This data is first analyzed in:

    Cobb, G. W. 1978. "The Problem of the Nile: Conditional Solution to a
        Changepoint Problem." *Biometrika*. 65.2, 243-51.
zuThis dataset contains measurements on the annual flow of
the Nile as measured at Ashwan for 100 years from 1871-1970.z, There is an apparent changepoint near 1898.z::

    Number of observations: 100
    Number of variables: 2
    Variable name definitions:

        year - the year of the observations
        volumne - the discharge at Aswan in 10^8, m^3
c                   C   s   t  S )z
    Load the Nile data and return a Dataset class instance.

    Returns
    -------
    Dataset
        See DATASET_PROPOSAL.txt for more information.
    )load_pandas r   r   B/tmp/pip-unpacked-wheel-2v6byqio/statsmodels/datasets/nile/data.pyload"   s    	r   c                  C   s>   t  } tj| d | d td}tj| t| j|dd}|S )Nvolumeyear)index)datanamesendogZ
endog_name)		_get_datapdZSeriesastypeintduZDatasetlistcolumns)r
   r   Zdatasetr   r   r   r   .   s    r   c                   C   s   t tdtS )Nznile.csv)r   Zload_csv__file__r   floatr   r   r   r   r   6   s    r   )__doc__Zpandasr   Zstatsmodels.datasetsr   r   Z__docformat__Z	COPYRIGHTZTITLEZSOURCEZ
DESCRSHORTZ	DESCRLONGZNOTEr   r   r   r   r   r   r   <module>   s   