3
Êb_³W  ã               @   s
  d dl mZ d dlmZmZmZmZ d dlmZ d dl	Z	d dl
Z
d dlmZmZ d dlZd dlmZ d dlZd dlZd dlmZmZ d dljjZd dlZd dlmZ d dljZ d d	l!m"Z" ej#j$d
dej%j&fd� ej#j'd
ƒ dd„ Z(dd„ Z)ej*dd�dd„ ƒZ+ej*dd�dd„ ƒZ,ej*dddddddgd�dd „ ƒZ-ej*d d!d"d#gd$d%„ d&�d'd(„ ƒZ.e.Z/ej*d d"gd)d%„ d&�d*d+„ ƒZ0ej*d,d-„ ƒZ1ej*dd.dgd�d/d0„ ƒZ2ej*dd.dgd�d1d2„ ƒZ3d3d4d5d6d7d8d9d:d;d<d=d>d?d@gZ4ej*e4d�dAdB„ ƒZ5ej*e	j6e"j7e	j8e"j9e	j:e"j;e	j<e"j=e	j>e"j?e	j@e"jAe	jBe"jCgd�dCdD„ ƒZDdEdFdGdHdIdJdKdLdMdNg
ZEej*eEd�dOdP„ ƒZFdQdRgZGej*eGd�dSdT„ ƒZHejIjJjKjLjMƒ ZLej*eNeLƒd�dUdV„ ƒZOdWdX„ ZPej*dYdZd[d\d]d^gd�d_d`„ ƒZQej*d[d\d]d^gd�dadb„ ƒZRej*dcdddedfdgdhgd�didj„ ƒZSej*ddkdldmdngd�dodp„ ƒZTej*dkdldmdngd�dqdr„ ƒZUej*dd.gd�dsdt„ ƒZVej*dudv�dwdx„ ƒZWej*dydzeeƒ ejgd�d{d|„ ƒZXej*d}d~dd€gd�d�d‚„ ƒZYej*dƒd„„ ƒZZej*d…d†„ ƒZ[ej*d‡dˆ„ ƒZ\ej*d‰dŠgd�d‹dŒ„ ƒZ]ej*dd€d�dŽgd�d�d�„ ƒZ^ej*dd€d�dŽgd�d‘d’„ ƒZ_ej*dej`ejaebd“ƒejbd”ƒgd�d•d–„ ƒZcecZdej*dej`ejagd�d—d˜„ ƒZeeeZfdd™dšd›dœd�eƒ eƒ edžƒed ƒe�dƒejeed!dŸ�ƒee�ddŸ�d d¡�gZgd¢d£„ egD ƒZhejiejehƒƒej*egehd&�d¤d¥„ ƒƒZkejiejehd!d… ƒƒej*egd!d… ehd!d… d&�d¦d§„ ƒƒZlelZmd¨d©dªd«gZnd¬d­d®d¯gZoepd°d±d²d³gZqd´dµd¶d·gZreneq Zseoer Ztebd¸d¹gZuevdºd»gZwejd¼d½gZxd¾d¿gZydÀdÁgZze{dÂgZ|e}dÃgZ~edÄgZ€eues Z�e�ew ex ey ez e| e€ e~ Z‚ej*exd�dÅdÆ„ ƒZƒej*e~d�dÇdÈ„ ƒZ„ej*e€d�dÉdÊ„ ƒZ…ej*eyd�dËdÌ„ ƒZ†ej*ezd�dÍdÎ„ ƒZ‡ej*eud�dÏdÐ„ ƒZˆej*ewd�dÑdÒ„ ƒZ‰ej*eqd�dÓdÔ„ ƒZŠej*end�dÕdÖ„ ƒZ‹ej*esd�d×dØ„ ƒZŒej*etd�dÙdÚ„ ƒZ�ej*e�d�dÛdÜ„ ƒZŽej*e‚d�dÝdÞ„ ƒZ�dßdàej`dágfdßdàej�dágfdÃdâej`dãgfdäej`ej`ej`gfdäg fdådàej`dægfdçdàej`dègfdédêej`dègfdëd!ej`dægfdìd!ej`dègfdíed!ƒej`edæƒgfdîdej`d.gfdîdej�d.gfdïej‘dðƒej`ej‘dñƒgfdòej’dóƒej`ej’dôƒgfdõedöd!d!ƒej`ed÷d!d!ƒgfdøed!ƒej`edæƒgfdùed!ƒej`edæƒgfdúej“döƒejaej“d÷ƒgfdûej”d d!ƒej`ej”d dæƒgfgZ•e–e•Ž \Z—Z˜ej*e•e—d&�düdý„ ƒZ™ej*dþd£„ ejšj›D ƒd�dÿ�d „ ƒZœxL�dj�ƒ D ]>ZžeŸej jšežƒZ¡ej¢e¡ej£e¡ej¤�d�dƒej¥ƒ �d�ƒ �q¼W x\�dj�ƒ D ]NZžeŸej jšežƒZ¡ej¢e¡ej£e¡ej¤�d�dƒej¥ƒ ej¤d!�d�d��d�ƒ �	q
W x\�d	j�ƒ D ]NZžeŸej jšežƒZ¡ej¢e¡ej£e¡ej¤�d�d
ƒej¥ƒ ej¤d!�d�d��d�ƒ �	qhW ej*�d�d„ ƒZ¦ej*ej§ej¨gd"�dgd&��d�d„ ƒZ©ej*�d�d„ ƒZªej*�d�d„ ƒZ«dS (  é    )Úabc)ÚdateÚtimeÚ	timedeltaÚtimezone)ÚDecimalN)ÚtzlocalÚtzutc)Ú
strategies)ÚFixedOffsetÚutc)Ú	DataFrame)ÚopsZciiô  )ÚdeadlineZsuppress_health_checkc             C   sd   | j dddd� | j dddd� | j dddd� | j d	dd
d� | j dddd� | j dddd� d S )Nz--skip-slowÚ
store_truezskip slow tests)ÚactionÚhelpz--skip-networkzskip network testsz	--skip-dbzskip db testsz--run-high-memoryzrun high memory testsz--only-slowzrun only slow testsz--strict-data-filesz0Fail if a test is skipped for missing data file.)Z	addoption)Úparser© r   ú1/tmp/pip-build-jkwsxyiy/pandas/pandas/conftest.pyÚpytest_addoption"   s    r   c             C   s¦   d| j kr | jjdƒr tjdƒ d| j kr@| jjdƒr@tjdƒ d| j kr`| jjdƒr`tjdƒ d	| j kr€| jjd
ƒr€tjdƒ d| j kr¢| jjdƒ r¢tjdƒ d S )NZslowz--skip-slowzskipping due to --skip-slowz--only-slowzskipping due to --only-slowÚnetworkz--skip-networkzskipping due to --skip-networkÚdbz	--skip-dbzskipping due to --skip-dbZhigh_memoryz--run-high-memoryz=skipping high memory test since --run-high-memory was not set)ÚkeywordsÚconfigÚ	getoptionÚpytestÚskip)Úitemr   r   r   Úpytest_runtest_setup1   s    



r   T)Zautousec               C   s   t jddƒ d S )NZchained_assignmentÚraise)ÚpdZ
set_optionr   r   r   r   Úconfigure_testsG   s    r"   c             C   s   t | d< t| d< d S )NÚnpr!   )r#   r!   )Zdoctest_namespacer   r   r   Úadd_importsO   s    r$   ZbsrZcooZcscZcsrZdiaZdokZlil)Úparamsc             C   s   ddl m} t|| jd ƒS )Nr   )ÚsparseZ_matrix)Zscipyr&   ÚgetattrÚparam)Úrequestr&   r   r   r   ÚspmatrixU   s    r*   é   ÚindexÚcolumnsc             C   s   dt | ƒ› �S )Nzaxis )Úrepr)Úxr   r   r   Ú<lambda>\   s    r0   )r%   Úidsc             C   s   | j S )zB
     Fixture for returning the axis numbers of a DataFrame.
     )r(   )r)   r   r   r   Úaxis\   s    r2   c             C   s   dt | ƒ› �S )Nzaxis )r.   )r/   r   r   r   r0   g   s    c             C   s   | j S )z?
     Fixture for returning the axis numbers of a Series.
     )r(   )r)   r   r   r   Úaxis_seriesg   s    r3   c              C   s    t jddd� ddlm}  | ƒ S )zj
    Get an instance of IPython.InteractiveShell.

    Will raise a skip if IPython is not installed.
    ZIPythonz6.0.0)Z
minversionr   )ÚInteractiveShell)r   ZimportorskipZIPython.core.interactiveshellr4   )r4   r   r   r   Úipo   s    r5   Fc             C   s   | j S )a…  
    Pass in the observed keyword to groupby for [True, False]
    This indicates whether categoricals should return values for
    values which are not in the grouper [False / None], or only values which
    appear in the grouper [True]. [None] is supported for future compatibility
    if we decide to change the default (and would need to warn if this
    parameter is not passed).
    )r(   )r)   r   r   r   Úobserved}   s    
r6   c             C   s   | j S )z6
    Boolean 'ordered' parameter for Categorical.
    )r(   )r)   r   r   r   Úordered_fixtureŠ   s    r7   Ú__add__Ú__radd__Ú__sub__Ú__rsub__Ú__mul__Ú__rmul__Ú__floordiv__Ú__rfloordiv__Ú__truediv__Ú__rtruediv__Ú__pow__Ú__rpow__Ú__mod__Ú__rmod__c             C   s   | j S )zD
    Fixture for dunder names for common arithmetic operations.
    )r(   )r)   r   r   r   Úall_arithmetic_operators¤   s    rF   c             C   s   | j S )z¬
    Fixture for operator and roperator arithmetic functions.

    Notes
    -----
    This includes divmod and rdivmod, whereas all_arithmetic_operators
    does not.
    )r(   )r)   r   r   r   Úall_arithmetic_functions¬   s    rG   ÚsumÚmaxÚminZmeanÚprodZstdÚvarZmedianZkurtZskewc             C   s   | j S )z.
    Fixture for numeric reduction names.
    )r(   )r)   r   r   r   Úall_numeric_reductionsØ   s    rM   ÚallÚanyc             C   s   | j S )z.
    Fixture for boolean reduction names.
    )r(   )r)   r   r   r   Úall_boolean_reductionsã   s    rP   c             C   s   | j S )N)r(   )r)   r   r   r   Úcython_table_itemsî   s    rQ   c                sD   g }x:|D ]2\‰‰ |j ˆˆˆ fƒ |‡ ‡‡fdd„tD ƒ7 }q
W |S )a¼  
    Combine frame, functions from SelectionMixin._cython_table
    keys and expected result.

    Parameters
    ----------
    ndframe : DataFrame or Series
    func_names_and_expected : Sequence of two items
        The first item is a name of a NDFrame method ('sum', 'prod') etc.
        The second item is the expected return value.

    Returns
    -------
    list
        List of three items (DataFrame, function, expected result)
    c                s"   g | ]\}}|ˆkrˆ|ˆ f‘qS r   r   )Ú.0ÚfuncÚname)ÚexpectedÚ	func_nameÚndframer   r   ú
<listcomp>  s   z,_get_cython_table_params.<locals>.<listcomp>)ÚappendÚ_cython_table)rW   Zfunc_names_and_expectedÚresultsr   )rU   rV   rW   r   Ú_get_cython_table_paramsó   s    r\   Ú__eq__Ú__ne__Ú__le__Ú__lt__Ú__ge__Ú__gt__c             C   s   | j S )zu
    Fixture for dunder names for common compare operations

    * >=
    * >
    * ==
    * !=
    * <
    * <=
    )r(   )r)   r   r   r   Úall_compare_operators  s    rc   c             C   s   | j S )zm
    Fixture for dunder names for compare operations except == and !=

    * >=
    * >
    * <
    * <=
    )r(   )r)   r   r   r   Úcompare_operators_no_eq_ne  s    
rd   Ú__and__Ú__rand__Ú__or__Ú__ror__Ú__xor__Ú__rxor__c             C   s   | j S )zY
    Fixture for dunder names for common logical operations

    * |
    * &
    * ^
    )r(   )r)   r   r   r   Úall_logical_operators+  s    rk   ÚgzipÚbz2ÚzipÚxzc             C   s   | j S )zK
    Fixture for trying common compression types in compression tests.
    )r(   )r)   r   r   r   Úcompression9  s    rp   c             C   s   | j S )zk
    Fixture for trying common compression types in compression tests excluding
    uncompressed case.
    )r(   )r)   r   r   r   Úcompression_onlyA  s    rq   c             C   s   | j S )z,
    Fixture that an array is writable.
    )r(   )r)   r   r   r   ÚwritableJ  s    rr   Úmodule)Zscopec               C   s   t jS )N)r   r   r   r   r   r   Údatetime_tz_utcR  s    rt   r   zdateutil/UTCc             C   s   | j S )zQ
    Fixture to provide variants of UTC timezone strings and tzinfo objects.
    )r(   )r)   r   r   r   Úutc_fixtureW  s    ru   ÚinnerÚouterÚleftÚrightc             C   s   | j S )z:
    Fixture for trying all types of join operations.
    )r(   )r)   r   r   r   Ú	join_type_  s    rz   c             C   s
   | j dƒS )Nz--strict-data-files)r   )Zpytestconfigr   r   r   Ústrict_data_filesg  s    r{   c                s(   t jjt jjtƒdƒ‰ ‡ ‡fdd„}|S )a=  
    Get the path to a data file.

    Parameters
    ----------
    path : str
        Path to the file, relative to ``pandas/tests/``

    Returns
    -------
    path including ``pandas/tests``.

    Raises
    ------
    ValueError
        If the path doesn't exist and the --strict-data-files option is set.
    Útestsc                 sJ   t jjˆ f| žŽ }t jj|ƒsFˆr4td|› d�ƒ‚ntjd|› d�ƒ |S )NzCould not find file z  and --strict-data-files is set.zCould not find Ú.)ÚosÚpathÚjoinÚexistsÚ
ValueErrorr   r   )Úargsr   )Ú	BASE_PATHr{   r   r   Údeco�  s    zdatapath.<locals>.deco)r~   r   r€   ÚdirnameÚ__file__)r{   r…   r   )r„   r{   r   Údatapathl  s    rˆ   c             C   s   t j| ddddƒƒS )z*
    The iris dataset as a DataFrame.
    ÚioÚdataÚcsvziris.csv)r!   Zread_csv)rˆ   r   r   r   Úiris�  s    rŒ   ÚnlargestÚ	nsmallestc             C   s   | j S )z1
    Fixture for trying all nselect methods.
    )r(   )r)   r   r   r   Únselect_method—  s    r�   ZbothZneitherc             C   s   | j S )z<
    Fixture for trying all interval closed parameters.
    )r(   )r)   r   r   r   ÚclosedŸ  s    r�   c             C   s   | j S )zS
    Secondary closed fixture to allow parametrizing over all pairs of closed.
    )r(   )r)   r   r   r   Úother_closed§  s    r‘   ÚnanÚNaNc             C   s   | j S )z/
    Fixture for each null type in pandas.
    )r(   )r)   r   r   r   Únulls_fixture¯  s    r”   c             C   s   | j S )zL
    Fixture for each null type in pandas, each null type exactly once.
    )r(   )r)   r   r   r   Úunique_nulls_fixtureº  s    r•   ÚUTCz
US/Easternz
Asia/Tokyozdateutil/US/Pacificzdateutil/Asia/Singaporei,  )ÚhoursZfoo)rT   c             C   s   g | ]}t |ƒ‘qS r   )r.   )rR   Úir   r   r   rX   Ö  s    rX   c             C   s   | j S )zD
    Fixture for trying timezones including default (None): {0}
    )r(   )r)   r   r   r   Útz_naive_fixtureÙ  s    r™   c             C   s   | j S )z4
    Fixture for trying explicit timezones: {0}
    )r(   )r)   r   r   r   Útz_aware_fixtureâ  s    rš   Zuint8Zuint16Zuint32Zuint64ZUInt8ZUInt16ZUInt32ZUInt64Zint8Zint16Zint32Zint64ZInt8ZInt16ZInt32ZInt64Zfloat32Zfloat64Z	complex64Z
complex128ÚstrÚUzdatetime64[ns]zM8[ns]ztimedelta64[ns]zm8[ns]ÚboolÚbytesÚobjectc             C   s   | j S )zR
    Parametrized fixture for string dtypes.

    * str
    * 'str'
    * 'U'
    )r(   )r)   r   r   r   Ústring_dtype  s    	r    c             C   s   | j S )zK
    Parametrized fixture for bytes dtypes.

    * bytes
    * 'bytes'
    )r(   )r)   r   r   r   Úbytes_dtype  s    r¡   c             C   s   | j S )zN
    Parametrized fixture for object dtypes.

    * object
    * 'object'
    )r(   )r)   r   r   r   Úobject_dtype)  s    r¢   c             C   s   | j S )z\
    Parametrized fixture for datetime64 dtypes.

    * 'datetime64[ns]'
    * 'M8[ns]'
    )r(   )r)   r   r   r   Údatetime64_dtype4  s    r£   c             C   s   | j S )z^
    Parametrized fixture for timedelta64 dtypes.

    * 'timedelta64[ns]'
    * 'm8[ns]'
    )r(   )r)   r   r   r   Útimedelta64_dtype?  s    r¤   c             C   s   | j S )z^
    Parameterized fixture for float dtypes.

    * float
    * 'float32'
    * 'float64'
    )r(   )r)   r   r   r   Úfloat_dtypeJ  s    	r¥   c             C   s   | j S )zg
    Parameterized fixture for complex dtypes.

    * complex
    * 'complex64'
    * 'complex128'
    )r(   )r)   r   r   r   Úcomplex_dtypeV  s    	r¦   c             C   s   | j S )z|
    Parameterized fixture for signed integer dtypes.

    * int
    * 'int8'
    * 'int16'
    * 'int32'
    * 'int64'
    )r(   )r)   r   r   r   Ú
sint_dtypeb  s    r§   c             C   s   | j S )zx
    Parameterized fixture for unsigned integer dtypes.

    * 'uint8'
    * 'uint16'
    * 'uint32'
    * 'uint64'
    )r(   )r)   r   r   r   Ú
uint_dtypep  s    
r¨   c             C   s   | j S )z³
    Parameterized fixture for any integer dtype.

    * int
    * 'int8'
    * 'uint8'
    * 'int16'
    * 'uint16'
    * 'int32'
    * 'uint32'
    * 'int64'
    * 'uint64'
    )r(   )r)   r   r   r   Úany_int_dtype}  s    r©   c             C   s   | j S )z²
    Parameterized fixture for any nullable integer dtype.

    * 'UInt8'
    * 'Int8'
    * 'UInt16'
    * 'Int16'
    * 'UInt32'
    * 'Int32'
    * 'UInt64'
    * 'Int64'
    )r(   )r)   r   r   r   Úany_nullable_int_dtype�  s    rª   c             C   s   | j S )zí
    Parameterized fixture for any (purely) real numeric dtype.

    * int
    * 'int8'
    * 'uint8'
    * 'int16'
    * 'uint16'
    * 'int32'
    * 'uint32'
    * 'int64'
    * 'uint64'
    * float
    * 'float32'
    * 'float64'
    )r(   )r)   r   r   r   Úany_real_dtype¡  s    r«   c             C   s   | j S )aÌ  
    Parameterized fixture for all numpy dtypes.

    * bool
    * 'bool'
    * int
    * 'int8'
    * 'uint8'
    * 'int16'
    * 'uint16'
    * 'int32'
    * 'uint32'
    * 'int64'
    * 'uint64'
    * float
    * 'float32'
    * 'float64'
    * complex
    * 'complex64'
    * 'complex128'
    * str
    * 'str'
    * 'U'
    * bytes
    * 'bytes'
    * 'datetime64[ns]'
    * 'M8[ns]'
    * 'timedelta64[ns]'
    * 'm8[ns]'
    * object
    * 'object'
    )r(   )r)   r   r   r   Úany_numpy_dtype¶  s    "r¬   ÚstringÚaÚcó   aó   cÚemptyzmixed-integeré   Úmixedg       @Zfloatingg      ð?Úintegerzmixed-integer-floatÚdecimalÚbooleanÚ
datetime64z
2013-01-01z
2018-01-01ÚdatetimeZ20130101Z20180101r   iÝ  iâ  r   r   ZperiodÚintervalc             C   s    | j \}}tj|td�}||fS )a�  
    Fixture for all inferred dtypes from _libs.lib.infer_dtype

    The covered (inferred) types are:
    * 'string'
    * 'empty'
    * 'bytes'
    * 'mixed'
    * 'mixed-integer'
    * 'mixed-integer-float'
    * 'floating'
    * 'integer'
    * 'decimal'
    * 'boolean'
    * 'datetime64'
    * 'datetime'
    * 'date'
    * 'timedelta'
    * 'time'
    * 'period'
    * 'interval'

    Returns
    -------
    inferred_dtype : str
        The string for the inferred dtype from _libs.lib.infer_dtype
    values : np.ndarray
        An array of object dtype that will be inferred to have
        `inferred_dtype`

    Examples
    --------
    >>> import pandas._libs.lib as lib
    >>>
    >>> def test_something(any_skipna_inferred_dtype):
    ...     inferred_dtype, values = any_skipna_inferred_dtype
    ...     # will pass
    ...     assert lib.infer_dtype(values, skipna=True) == inferred_dtype
    )Zdtype)r(   r#   ÚarrayrŸ   )r)   Zinferred_dtypeÚvaluesr   r   r   Úany_skipna_inferred_dtypeù  s    )
r½   c             C   s.   g | ]&}t ttj|ƒtjjƒrttj|ƒ‘qS r   )Ú
issubclassr'   r!   ÚoffsetsZTick)rR   Úor   r   r   rX   +  s   c             C   s   | j S )zN
    Fixture for Tick based datetime offsets available for a time series.
    )r(   )r)   r   r   r   Útick_classes)  s    rÁ   z)MonthBegin MonthEnd BMonthBegin BMonthEndéc   )ÚnÚ	normalizez%YearBegin YearEnd BYearBegin BYearEndé   é   )Z	min_valueZ	max_value)rÃ   rÄ   Úmonthz1QuarterBegin QuarterEnd BQuarterBegin BQuarterEndé   )rÃ   rÄ   ZstartingMonthc               C   s   t tjƒ ƒS )aù  
    Fixture for DataFrame of floats with index of unique strings

    Columns are ['A', 'B', 'C', 'D'].

                       A         B         C         D
    P7GACiRnxd -0.465578 -0.361863  0.886172 -0.053465
    qZKh6afn8n -0.466693 -0.373773  0.266873  1.673901
    tkp0r6Qble  0.148691 -0.059051  0.174817  1.598433
    wP70WOCtv8  0.133045 -0.581994 -0.992240  0.261651
    M2AeYQMnCz -1.207959 -0.185775  0.588206  0.563938
    QEPzyGDYDo -0.381843 -0.758281  0.502575 -0.565053
    r78Jwns6dn -0.653707  0.883127  0.682199  0.206159
    ...              ...       ...       ...       ...
    IHEGx9NO0T -0.277360  0.113021 -1.018314  0.196316
    lPMj8K27FA -1.313667 -0.604776 -1.305618 -0.863999
    qa66YMWQa5  1.110525  0.475310 -0.747865  0.032121
    yOa0ATsmcE -0.431457  0.067094  0.096567 -0.264962
    65znX3uRNG  1.528446  0.160416 -0.109635 -0.032987
    eCOBvKqf3e  0.235281  1.622222  0.781255  0.392871
    xSucinXxuV -1.263557  0.252799 -0.552247  0.400426

    [30 rows x 4 columns]
    )r   ÚtmZgetSeriesDatar   r   r   r   Úfloat_frame\  s    rÊ   Zseriesc             C   s   | j S )zÑ
    Fixture to parametrize over Index and Series, made necessary by a mypy
    bug, giving an error:

    List item 0 has incompatible type "Type[Series]"; expected "Type[PandasObject]"

    See GH#29725
    )r(   )r)   r   r   r   Úindex_or_seriesy  s    
rË   c              C   s   G dd„ dt ƒ} | S )z,
    Fixture for a dictionary subclass.
    c               @   s   e Zd Zdd„ ZdS )z"dict_subclass.<locals>.TestSubDictc             _   s   t j| f|ž|Ž d S )N)ÚdictÚ__init__)Úselfrƒ   Úkwargsr   r   r   rÍ   �  s    z+dict_subclass.<locals>.TestSubDict.__init__N)Ú__name__Ú
__module__Ú__qualname__rÍ   r   r   r   r   ÚTestSubDictŒ  s   rÓ   )rÌ   )rÓ   r   r   r   Údict_subclass†  s    rÔ   c              C   s   G dd„ dt jƒ} | S )z8
    Fixture for a non-mapping dictionary subclass.
    c               @   s,   e Zd Zdd„ Zdd„ Zdd„ Zdd„ Zd	S )
z5non_mapping_dict_subclass.<locals>.TestNonDictMappingc             S   s
   || _ d S )N)Ú_data)rÎ   Zunderlying_dictr   r   r   rÍ   š  s    z>non_mapping_dict_subclass.<locals>.TestNonDictMapping.__init__c             S   s   | j j|ƒS )N)rÕ   Ú__getitem__)rÎ   Úkeyr   r   r   rÖ   �  s    zAnon_mapping_dict_subclass.<locals>.TestNonDictMapping.__getitem__c             S   s
   | j jƒ S )N)rÕ   Ú__iter__)rÎ   r   r   r   rØ      s    z>non_mapping_dict_subclass.<locals>.TestNonDictMapping.__iter__c             S   s
   | j jƒ S )N)rÕ   Ú__len__)rÎ   r   r   r   rÙ   £  s    z=non_mapping_dict_subclass.<locals>.TestNonDictMapping.__len__N)rÐ   rÑ   rÒ   rÍ   rÖ   rØ   rÙ   r   r   r   r   ÚTestNonDictMapping™  s   rÚ   )r   ÚMapping)rÚ   r   r   r   Únon_mapping_dict_subclass“  s    rÜ   iÔþÿÿéÿÿÿÿi�ÿÿÿéûÿÿÿièÿÿÿ)¬Úcollectionsr   r¹   r   r   r   r   r¶   r   Úoperatorr~   Zdateutil.tzr   r	   Z
hypothesisr
   ÚstZnumpyr#   r   Zpytzr   r   Zpandas.util._test_decoratorsÚutilZ_test_decoratorsÚtdZpandasr!   r   Zpandas._testingZ_testingrÉ   Zpandas.corer   ÚsettingsZregister_profileZHealthCheckZtoo_slowZload_profiler   r   Zfixturer"   r$   r*   r2   Z
axis_framer3   r5   r6   r7   Z_all_arithmetic_operatorsrF   ÚaddZraddÚsubZrsubÚmulZrmulÚtruedivZrtruedivÚfloordivZ	rfloordivÚmodZrmodÚpowZrpowrG   Z_all_numeric_reductionsrM   Z_all_boolean_reductionsrP   ÚcoreÚbaseZSelectionMixinrZ   ÚitemsÚlistrQ   r\   rc   rd   rk   rp   rq   rr   rt   ru   rz   r{   rˆ   rŒ   r�   r�   r‘   r’   ZNaTÚfloatr”   Znulls_fixture2r•   Zunique_nulls_fixture2Z	TIMEZONESZTIMEZONE_IDSZparametrize_fixture_docr›   r™   rš   Ztz_aware_fixture2ZUNSIGNED_INT_DTYPESZUNSIGNED_EA_INT_DTYPESÚintZSIGNED_INT_DTYPESZSIGNED_EA_INT_DTYPESZALL_INT_DTYPESZALL_EA_INT_DTYPESZFLOAT_DTYPESÚcomplexZCOMPLEX_DTYPESZSTRING_DTYPESZDATETIME64_DTYPESZTIMEDELTA64_DTYPESr�   ZBOOL_DTYPESrž   ZBYTES_DTYPESrŸ   ZOBJECT_DTYPESZALL_REAL_DTYPESZALL_NUMPY_DTYPESr    r¡   r¢   r£   r¤   r¥   r¦   r§   r¨   r©   rª   r«   r¬   ZNAr¸   Z	TimestampZPeriodZIntervalZ_any_skipna_inferred_dtypern   r1   Ú_r½   r¿   Ú__all__rÁ   ÚsplitrT   r'   ZtseriesÚclsZregister_type_strategyZbuildsZintegersZbooleansrÊ   ÚIndexZSeriesrË   rÔ   rÜ   r   r   r   r   Ú<module>   sŠ  
""	 	"#,	(	


	 '"0,  (