B
    Z                 @   s`   d Z dZdZdZdZdZdZdZdd	lZ	dd
l
mZ ddlmZmZ dd Zdd Zdd Zd	S )zName of dataset.ZrestructuredtextzE.g., This is public domain.zTitle of the datasetz
This section should provide a link to the original dataset if possible and
attribution and correspondance information for the dataset's original author
if so desired.
zA short description.z$A longer description of the dataset.z
::

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

Any other useful information that does not fit into the above categories.
    N)utils)dirnameabspathc              C   s   t  } tj| ddtdS )z
    Load the data and return a Dataset class instance.

    Returns
    -------
    Dataset instance:
        See DATASET_PROPOSAL.txt for more information.
    r   N)	endog_idxexog_idxdtype)	_get_dataduZprocess_recarrayfloat)data r   Alib/python3.7/site-packages/statsmodels/datasets/template_data.pyload#   s    	r   c              C   s   t  } tj| dd tdS )Nr   )r   r   r   )r   r	   Zprocess_recarray_pandasr
   )r   r   r   r   load_pandas2   s    
r   c           	   C   s<   t tt} t| d d}tj|ddtd}W d Q R X |S )Nz/DatasetName.csvrb,T)Z	delimiternamesr   )r   r   __file__opennpZ
recfromtxtr
   )filepathfdr   r   r   r   r   :   s    r   )__doc__Z__docformat__Z	COPYRIGHTZTITLEZSOURCEZ
DESCRSHORTZ	DESCRLONGZNOTEZnumpyr   Zstatsmodels.datasetsr   r	   os.pathr   r   r   r   r   r   r   r   r   <module>   s   