a
    ên§ap	  ã                   @  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)Ú.0Zword© r
   ú8lib/python3.9/site-packages/bokeh/sampledata/autompg2.pyÚ	<genexpr>:   ó    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manufacturerZmodelZdrvZfrontZrearZ4x4)ÚfÚrÚ4)r   ÚcopyÚmapr   Úreplace)Zdfr
   r
   r   Ú
_read_data<   s
    r   )Ú__doc__Z
__future__r   ZloggingZ	getLoggerÚ__name__ÚlogZutil.sampledatar   Ú__all__r   r   r   r
   r
   r
   r   Ú<module>   s   
