ó
x\c           @   s  d  d l  Z d  d l Z d  d l m Z m Z m Z m Z i e j e j e j d d d d d d d	 g
 d
 6d d d e j e j e j d d d d	 g
 d 6e j	 d d e j
 d 6d d d d d d e j e j e j e j g
 d 6Z e d d d Z e j d    Z e j d    Z e j d    Z e j d    Z e j d    Z e j d    Z e j d    Z e j d    Z e j d    Z d S(   i˙˙˙˙N(   t	   DataFramet   SparseArrayt   SparseDataFramet   bdate_rangei    i   i   i   i   i   i   t   At   Bi
   t   dtypet   Ct   Ds   1/1/2011t   periodsc           C   s   t  t d t S(   s   
    Fixture for dense DataFrame of floats with DatetimeIndex

    Columns are ['A', 'B', 'C', 'D']; some entries are missing
    t   index(   R    t   datat   dates(    (    (    sA   lib/python2.7/site-packages/pandas/tests/sparse/frame/conftest.pyt   float_frame_dense   s    c           C   s   t  t d t d d S(   s   
    Fixture for sparse DataFrame of floats with DatetimeIndex

    Columns are ['A', 'B', 'C', 'D']; some entries are missing
    R
   t   default_kindt   block(   R   R   R   (    (    (    sA   lib/python2.7/site-packages/pandas/tests/sparse/frame/conftest.pyt   float_frame   s    c           C   s   t  t d t d d S(   sŁ   
    Fixture for sparse DataFrame of floats with DatetimeIndex

    Columns are ['A', 'B', 'C', 'D'] and default_kind='integer'.
    Some entries are missing.
    R
   R   t   integer(   R   R   R   (    (    (    sA   lib/python2.7/site-packages/pandas/tests/sparse/frame/conftest.pyt   float_frame_int_kind%   s    c          C   s3   t  t d t }  t d g t t   |  d <|  S(   s   
    Fixture for sparse DataFrame of floats and strings with DatetimeIndex

    Columns are ['A', 'B', 'C', 'D', 'foo']; some entries are missing
    R
   t   bart   foo(   R   R   R   R   t   len(   t   sdf(    (    sA   lib/python2.7/site-packages/pandas/tests/sparse/frame/conftest.pyt   float_string_frame0   s    c          C   sD   t  t  j }  d |  t j |   <t |  d d d d d g d t S(   s   
    Fixture for dense DataFrame of floats with DatetimeIndex

    Columns are ['A', 'B', 'C', 'D']; missing entries have been filled with 0
    i    t   columnsR   R   R   R   R
   (   R   R   t   valuest   npt   isnanR    R   (   R   (    (    sA   lib/python2.7/site-packages/pandas/tests/sparse/frame/conftest.pyt   float_frame_fill0_dense<   s    c          C   sJ   t  t  j }  d |  t j |   <t  |  d d d d d g d d d t S(	   s   
    Fixture for sparse DataFrame of floats with DatetimeIndex

    Columns are ['A', 'B', 'C', 'D']; missing entries have been filled with 0
    i    R   R   R   R   R   t   default_fill_valueR
   (   R   R   R   R   R   R   (   R   (    (    sA   lib/python2.7/site-packages/pandas/tests/sparse/frame/conftest.pyt   float_frame_fill0H   s    c          C   sD   t  t  j }  d |  t j |   <t |  d d d d d g d t S(   s   
    Fixture for dense DataFrame of floats with DatetimeIndex

    Columns are ['A', 'B', 'C', 'D']; missing entries have been filled with 2
    i   R   R   R   R   R   R
   (   R   R   R   R   R   R    R   (   R   (    (    sA   lib/python2.7/site-packages/pandas/tests/sparse/frame/conftest.pyt   float_frame_fill2_denseU   s    c          C   sJ   t  t  j }  d |  t j |   <t  |  d d d d d g d d d t S(	   s   
    Fixture for sparse DataFrame of floats with DatetimeIndex

    Columns are ['A', 'B', 'C', 'D']; missing entries have been filled with 2
    i   R   R   R   R   R   R   R
   (   R   R   R   R   R   R   (   R   (    (    sA   lib/python2.7/site-packages/pandas/tests/sparse/frame/conftest.pyt   float_frame_fill2a   s    c           C   s   t    S(   s+   
    Fixture for empty SparseDataFrame
    (   R   (    (    (    sA   lib/python2.7/site-packages/pandas/tests/sparse/frame/conftest.pyt   empty_framen   s    (   t   numpyR   t   pytestt   pandasR    R   R   R   t   nant   aranget   float64R   R   t   fixtureR   R   R   R   R   R   R   R    R!   (    (    (    sA   lib/python2.7/site-packages/pandas/tests/sparse/frame/conftest.pyt   <module>   s    "1.4
