a
    KDf
                     @  s   U d Z ddlmZ ddlZeeZddlZddlm	Z	 ddl
mZmZ e	rXddlmZ dZeZd	ed
< eZd	ed< ddddZe ZdS )a   Per-county unemployment data for Unites States in 2009.

License: `Public Domain`_

Sourced from: https://www.bls.gov

This module contains one dict: ``data``.

The dict is indexed by the two-tuples containing ``(state_id, county_id)`` and
has the unemployment rate (2009) as the value.

.. code-block:: ipython

    {
        (1, 1): 9.7,
        (1, 3): 9.1,
        ...
    }

.. bokeh-sampledata-xref:: unemployment
    )annotationsN)TYPE_CHECKING   )external_pathopen_csv)	TypeAlias)datar   StateCountyz!dict[tuple[State, County], float])returnc                  C  s|   i } t tdX}tj|ddd}|D ]2}|\	}}}}}}}}}t|| t|t|f< q&W d   n1 sn0    Y  | S )z

    zunemployment09.csv,")	delimiter	quotecharN)r   r   csvreaderfloatint)r   fr   row_Zstate_idZ	county_idZrate r   j/nfs/NAS7/SABIOD/METHODE/ermites/ermites_venv/lib/python3.9/site-packages/bokeh/sampledata/unemployment.py
_read_dataI   s    8r   )__doc__
__future__r   logging	getLogger__name__logr   typingr   Zutil.sampledatar   r   Ztyping_extensionsr   __all__r   r	   __annotations__r
   r   r   r   r   r   r   <module>   s   
