ó
mÜJ]c           @` s‹   d  Z  d d l m Z m Z m Z m Z d d l Z e j e ƒ Z	 d d l
 Z
 d d l m Z d d l m Z d	 Z d „  Z e ƒ  Z d S(
   u   The data in airports.json is a subset of US airports with field
elevations > 1500 meters. The query result was taken from

.. code-block:: none

    http://services.nationalmap.gov/arcgis/rest/services/GlobalMap/GlobalMapWFS/MapServer/10/query

on October 15, 2015.

i    (   t   absolute_importt   divisiont   print_functiont   unicode_literalsNi   (   t   import_required(   t   external_pathu   datac       	   C` sÝ   t  d d ƒ }  t t d ƒ d ƒ ³ } | j ƒ  } t j | ƒ } d d g d d g d d	 g d d
 g g } |  j j j | d d | ƒ} | j d i d d 6d d 6d t	 ƒ | j d i d	 d 6d
 d 6d t	 ƒ Wd QX| S(   u   

    u   pandasuO   airports sample data requires Pandas (http://pandas.pydata.org) to be installedu   airports.jsonu   ru
   attributesu   namu   zv3u   geometryu   xu   yu   featurest   metat   columnsu   nameu   attributes.namu	   elevationu   attributes.zv3t   inplaceu
   geometry.xu
   geometry.yN(
   R   t   openR   t   readt   jsont   loadst   iot   json_normalizet   renamet   True(   t   pdt   ft   contentt   airportst   schemat   data(    (    s8   lib/python2.7/site-packages/bokeh/sampledata/airports.pyt
   _read_data;   s    *$*(   u   data(   t   __doc__t
   __future__R    R   R   R   t   loggingt	   getLoggert   __name__t   logR   t   util.dependenciesR   t   util.sampledataR   t   __all__R   R   (    (    (    s8   lib/python2.7/site-packages/bokeh/sampledata/airports.pyt   <module>   s   "	