U
    õÕ/ep	  ã                   @  sL   d Z ddlmZ ddlZe e¡ZddlmZ dZ	dd„ Z
d	d
„ Zeƒ ZdS )zï A version of the Auto MPG data set.

Derived from https://archive.ics.uci.edu/ml/datasets/auto+mpg

This module contains one pandas Dataframe: ``autompg``.

.. rubric:: ``autompg2``

:bokeh-dataframe:`bokeh.sampledata.autompg2.autompg2`

é    )ÚannotationsNé   )Úpackage_csv)Úautompg2c                 C  s   d  dd„ |  d¡D ƒ¡S )ú

    ú c                 s  s   | ]}|  ¡ V  qd S )N)Ú
capitalize)Ú.0Úword© r   ú=/tmp/pip-unpacked-wheel-f5fndrjf/bokeh/sampledata/autompg2.pyÚ	<genexpr>:   s     z$_capitalize_words.<locals>.<genexpr>)ÚjoinÚsplit)Ústringr   r   r   Ú_capitalize_words6   s    r   c                  C  sP   t ddƒ ¡ } | d  t¡| d< | d  t¡| d< | d  dddd	œ¡| d< | S )
r   r   zauto-mpg2.csvZmanufacturerÚmodelÚdrvZfrontZrearZ4x4)ÚfÚrÚ4)r   ÚcopyÚmapr   Úreplace)Zdfr   r   r   Ú
_read_data<   s
    r   )Ú__doc__Ú
__future__r   ÚloggingÚ	getLoggerÚ__name__ÚlogZutil.sampledatar   Ú__all__r   r   r   r   r   r   r   Ú<module>   s   
