U
    ÎZjCµ  ã                   @   s–  d dl mZ d dlm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 d dlZd dlZd dlmZ d dlm  mZ d dlmZmZmZmZmZmZmZ d dlm Z! d d	l"m#Z# d dl$Zd d
l$m%Z% ej&ddddgd�dd„ ƒZ'dd„ Z(e )d¡e )d¡dd„ ƒƒZ*dd„ Z+e )d¡e )d¡e )d¡dd„ ƒƒƒZ,ej-j.dej/de )d¡e )d¡gd�ej/de )d¡d�gdd �G d!d"„ d"ƒƒZ0dS )#é    )Úpartial)Úreload)ÚBytesIOÚStringION)ÚPath)ÚURLError)Úis_platform_windows)Ú	DataFrameÚ
MultiIndexÚSeriesÚ	TimestampÚ
date_rangeÚread_csvÚto_datetime)Úfile_path_to_url©Ú	read_htmlzchinese_utf-16.htmlzchinese_utf-32.htmlzchinese_utf-8.htmlzletz_latin1.html)Úparamsc                 C   s   |ddd| j ƒS )z6Parametrized fixture for HTML encoding test filenames.ÚioÚdataZhtml_encoding)Úparam)ÚrequestÚdatapath© r   ú\/var/www/html/TRUCKING_PROJECT/venv/lib/python3.8/site-packages/pandas/tests/io/test_html.pyÚhtml_encoding_file#   s    
r   c                 O   sŠ   t | ƒt |ƒks,tdt | ƒ› dt |ƒ› �ƒ‚d}ttdd„ | |ƒƒ}|sPt|ƒ‚t| |ƒD ]*\}}tj||f|ž|Ž |jrZtdƒ‚qZd S )Nz*lists are not of equal size len(list1) == z, len(list2) == z$not all list elements are DataFramesc                 S   s   t | tƒot |tƒS ©N)Ú
isinstancer	   )ÚxÚyr   r   r   Ú<lambda>9   ó    z(assert_framelist_equal.<locals>.<lambda>zframes are both empty)ÚlenÚAssertionErrorÚallÚmapÚzipÚtmÚassert_frame_equalÚempty)Zlist1Zlist2ÚargsÚkwargsÚmsgZboth_framesZframe_iZframe_jr   r   r   Úassert_framelist_equal0   s    ÿýÿr-   Úbs4Úhtml5libc              	   C   sJ   dd l }|  |dd¡ tjtdd�� t|dddd	ƒd
d� W 5 Q R X d S )Nr   Ú__version__z4.2zPandas requires version©Úmatchr   r   Úhtmlú	spam.htmlr.   ©Úflavor)r.   ÚsetattrÚpytestÚraisesÚImportErrorr   )Zmonkeypatchr   r.   r   r   r   Útest_bs4_version_failsD   s    r;   c               	   C   s@   d} d}d| d }t jt|d�� t| d|d� W 5 Q R X d S )Nz
google.comzinvalid flavorz\{z \} is not a valid set of flavorsr1   Zgoogle©r2   r6   ©r8   r9   Ú
ValueErrorr   )Úurlr6   r,   r   r   r   Útest_invalid_flavorN   s
    r@   Úlxmlc                 C   s<   | ddddƒ}t |ddgd�}t |ddgd�}t||ƒ d S )	Nr   r   r3   úvalid_markup.htmlr   rA   )Ú	index_colr6   r.   ©r   r-   )r   ÚfilenameZdfs_lxmlZdfs_bs4r   r   r   Útest_same_orderingW   s    rF   r6   )ZmarksÚclass)Úscopec                   @   s4  e Zd Zejdd„ ƒZejdd„ ƒZejddd�dd	„ ƒZd
d„ Zej	j
ej
ddd�dd„ ƒƒZej	j
ej
ddd�dd„ ƒƒZej	j
ej
ddd�dd„ ƒƒZej	jdd„ ƒZdd„ Zdd„ Zdd„ Zdd„ Zdd „ Zd!d"„ Zd#d$„ Zd%d&„ Zd'd(„ Zd)d*„ Zd+d,„ Zd-d.„ Zd/d0„ Zd1d2„ Zd3d4„ Zd5d6„ Z d7d8„ Z!d9d:„ Z"d;d<„ Z#d=d>„ Z$ej	j
ej
d?d@„ ƒƒZ%ej	jej	j
ej
dAdB„ ƒƒƒZ&ej	jdCdD„ ƒZ'ej	jdEdF„ ƒZ(dGdH„ Z)ej	jdIdJ„ ƒZ*ej	jdKdL„ ƒZ+ej	jdMdN„ ƒZ,ej	jdOdP„ ƒZ-ej	jdQdR„ ƒZ.ej	jdSdT„ ƒZ/ej	jdUdV„ ƒZ0dWdX„ Z1ej	j
ej
dYdd�dZd[„ ƒƒZ2ej	j
ej
dYdd�d\d]„ ƒƒZ3d^d_„ Z4d`da„ Z5dbdc„ Z6ddde„ Z7dfdg„ Z8dhdi„ Z9ej	jdjdk„ ƒZ:ej	jdldm„ ƒZ;dndo„ Z<dpdq„ Z=drds„ Z>dtdu„ Z?dvdw„ Z@dxdy„ ZAdzd{„ ZBd|d}„ ZCd~d„ ZDd€d�„ ZEd‚dƒ„ ZFd„d…„ ZGd†d‡„ ZHej	 Idˆdd‰g¡dŠd‹„ ƒZJdŒd�„ ZKdŽd�„ ZLd�d‘„ ZMd’d“„ ZNd”d•„ ZOd–d—„ ZPd˜d™„ ZQej	jdšd›„ ƒZRdœd�„ ZSdždŸ„ ZTej	 Id deUd¡gƒd¢fd‰eUd£gƒeUd¡gƒfg¡d¤d¥„ ƒZVej	 Wd¦¡d§d¨„ ƒZXd©dª„ ZYd«d¬„ ZZej	jd­d®„ ƒZ[d¯d°„ Z\d±d²„ Z]ej	 Idˆd³d´dµd¶g¡d·d¸„ ƒZ^d¹dº„ Z_d»d¼„ Z`d¢S )½ÚTestReadHtmlc                 C   s   |ddddƒS )Nr   r   r3   r4   r   ©Úselfr   r   r   r   Ú	spam_dataj   s    zTestReadHtml.spam_datac                 C   s   |ddddƒS )Nr   r   r3   úbanklist.htmlr   rJ   r   r   r   Úbanklist_datan   s    zTestReadHtml.banklist_dataTÚfunction)ZautouserH   c                 c   s   t t|d�| _d V  d S )Nr5   )r   r   )rK   r6   r   r   r   Úset_defaultsr   s    zTestReadHtml.set_defaultsc                 C   sV   t jdddd„ ddd� dj¡ t¡}| ¡ }| j|dd	id
d�d
 }t  ||¡ d S )Né   é   c                  W   s
   t j ¡ S r   )ÚnpÚrandomZrand)r*   r   r   r   r    |   r!   z2TestReadHtml.test_to_html_compat.<locals>.<lambda>F)Z
data_gen_fZc_idx_namesZr_idx_namesz{:.3f}rG   Z	dataframer   )ÚattrsrC   )	r'   ZmakeCustomDataframeÚapplymapÚformatZastypeÚfloatÚto_htmlr   r(   )rK   ÚdfÚoutÚresr   r   r   Útest_to_html_compatw   s    ûùøÿz TestReadHtml.test_to_html_compatúThttps://www.fdic.gov/resources/resolutions/bank-failures/failed-bank-list/index.html)r?   Zcheck_before_testc              	   C   sV   d}t  t¡� |  |d¡}W 5 Q R X t  t¡� |  |d¡}W 5 Q R X t||ƒ d S )Nr^   úFirst Federal Bank of FloridaúMetcalf Bank)r'   Zassert_produces_warningÚFutureWarningr   r-   ©rK   r?   Údf1Údf2r   r   r   Ú"test_banklist_url_positional_match‡   s    	ýþz/TestReadHtml.test_banklist_url_positional_matchc                 C   s.   d}| j |dd�}| j |dd�}t||ƒ d S )Nr^   r_   r1   r`   rD   rb   r   r   r   Útest_banklist_url¡   s    	ýþzTestReadHtml.test_banklist_urlú\https://raw.githubusercontent.com/pandas-dev/pandas/main/pandas/tests/io/data/html/spam.htmlc                 C   s.   d}| j |dd�}| j |dd�}t||ƒ d S )Nrg   ú	.*Water.*r1   ÚUnitrD   rb   r   r   r   Útest_spam_url¸   s
    
ÿzTestReadHtml.test_spam_urlc                 C   s6   | j |dddid�}| j |dddid�}t||ƒ d S )Nz.*Florida.*ÚidÚtable©r2   rU   r`   rD   )rK   rN   rc   rd   r   r   r   Útest_banklistÊ   s    zTestReadHtml.test_banklistc                 C   sV   | j |dd�}| j |dd�}t||ƒ |d jd dks<t‚|d jd dksRt‚d S )Nrh   r1   ri   r   ©r   r   Ú
ProximatesZNutrient)r   r-   Úilocr#   Úcolumns©rK   rL   rc   rd   r   r   r   Ú	test_spamÑ   s
    
zTestReadHtml.test_spamc                 C   s&   |   |¡}|D ]}t|tƒst‚qd S r   ©r   r   r	   r#   )rK   rL   ÚdfsrZ   r   r   r   Útest_spam_no_matchÙ   s    
zTestReadHtml.test_spam_no_matchc                 C   s.   | j |ddid�}|D ]}t|tƒst‚qd S )Nrk   rl   )rU   ru   )rK   rN   rv   rZ   r   r   r   Útest_banklist_no_matchÞ   s    z#TestReadHtml.test_banklist_no_matchc                 C   s4   | j |ddd�d }|jd dks&t‚|jr0t‚d S )Nrh   é   ©r2   Úheaderr   rp   )r   rr   r#   r)   )rK   rL   rZ   r   r   r   Útest_spam_headerã   s    zTestReadHtml.test_spam_headerc                 C   s.   | j |ddd�}| j |ddd�}t||ƒ d S ©Nrh   é   ©r2   Úskiprowsri   rD   rs   r   r   r   Útest_skiprows_intè   s    zTestReadHtml.test_skiprows_intc                 C   s6   | j |dtdƒd�}| j |dtdƒd�}t||ƒ d S ©Nrh   ry   r   ri   )r   Úranger-   rs   r   r   r   Útest_skiprows_rangeî   s    z TestReadHtml.test_skiprows_rangec                 C   s6   | j |dddgd�}| j |dddgd�}t||ƒ d S ©Nrh   r~   ry   r   ri   rD   rs   r   r   r   Útest_skiprows_listô   s    zTestReadHtml.test_skiprows_listc                 C   s6   | j |dddhd�}| j |dddhd�}t||ƒ d S r…   rD   rs   r   r   r   Útest_skiprows_setú   s    zTestReadHtml.test_skiprows_setc                 C   s.   | j |ddd�}| j |ddd�}t||ƒ d S r}   rD   rs   r   r   r   Útest_skiprows_slice   s    z TestReadHtml.test_skiprows_slicec                 C   s6   | j |dtdƒd�}| j |dtdƒd�}t||ƒ d S r‚   ©r   Úslicer-   rs   r   r   r   Útest_skiprows_slice_short  s    z&TestReadHtml.test_skiprows_slice_shortc                 C   s<   | j |dtddƒd�}| j |dtdddƒd�}t||ƒ d S )	Nrh   ry   é   r   ri   rQ   r~   éÿÿÿÿr‰   rs   r   r   r   Útest_skiprows_slice_long  s    z%TestReadHtml.test_skiprows_slice_longc                 C   s:   | j |dt d¡d�}| j |dt d¡d�}t||ƒ d S r‚   )r   rS   Zaranger-   rs   r   r   r   Útest_skiprows_ndarray  s    z"TestReadHtml.test_skiprows_ndarrayc              	   C   s.   t jtdd�� | j|ddd� W 5 Q R X d S )Nz%is not a valid type for skipping rowsr1   rh   Zasdfr   )r8   r9   Ú	TypeErrorr   )rK   rL   r   r   r   Útest_skiprows_invalid  s    z"TestReadHtml.test_skiprows_invalidc                 C   s.   | j |ddd�}| j |ddd�}t||ƒ d S ©Nrh   r   ©r2   rC   ri   rD   rs   r   r   r   Ú
test_index  s    zTestReadHtml.test_indexc                 C   s2   | j |dddd�}| j |dddd�}t||ƒ d S ©Nrh   r~   r   )r2   r{   rC   ri   rD   rs   r   r   r   Útest_header_and_index_no_types!  s    z+TestReadHtml.test_header_and_index_no_typesc                 C   s2   | j |dddd�}| j |dddd�}t||ƒ d S r•   rD   rs   r   r   r   Ú test_header_and_index_with_types&  s    z-TestReadHtml.test_header_and_index_with_typesc                 C   s.   | j |ddd�}| j |ddd�}t||ƒ d S r’   rD   rs   r   r   r   Útest_infer_types+  s    zTestReadHtml.test_infer_typesc              	   C   sr   t |dd��}t| ¡ ƒ}W 5 Q R X t |dd��}t| ¡ ƒ}W 5 Q R X | j|dd�}| j|dd�}t||ƒ d S ©NzUTF-8)Úencodingrh   r1   ri   )Úopenr   Úreadr   r-   )rK   rL   ÚfÚdata1Údata2rc   rd   r   r   r   Útest_string_io2  s    zTestReadHtml.test_string_ioc              	   C   sJ   t |dd��}| ¡ }W 5 Q R X | j|dd�}| j|dd�}t||ƒ d S r™   )r›   rœ   r   r-   )rK   rL   r�   r   rc   rd   r   r   r   Útest_string=  s
    zTestReadHtml.test_stringc              	   C   sZ   t |dd��}| j|dd�}W 5 Q R X t |dd��}| j|dd�}W 5 Q R X t||ƒ d S r™   )r›   r   r-   )rK   rL   r�   rc   rd   r   r   r   Útest_file_likeF  s
    zTestReadHtml.test_file_likec              	   C   s,   t jtdd�� | jddd� W 5 Q R X d S )Nz#urlopen error unknown url type: gitr1   zgit://github.comrh   )r8   r9   r   r   ©rK   r   r   r   Útest_bad_url_protocolO  s    z"TestReadHtml.test_bad_url_protocolc              	   C   s4   d}t jttf|d�� | jddd� W 5 Q R X d S )NzNName or service not known|Temporary failure in name resolution|No tables foundr1   zhttp://www.a23950sdfa908sd.comrh   )r8   r9   r   r>   r   )rK   r,   r   r   r   Útest_invalid_urlU  s    ÿzTestReadHtml.test_invalid_urlc                 C   sN   |}| j ttj |¡ƒdddid�}t|tƒs2t‚|D ]}t|tƒs6t‚q6d S )NZFirstrk   rl   rm   )	r   r   ÚosÚpathÚabspathr   Úlistr#   r	   ©rK   rN   r?   rv   rZ   r   r   r   Útest_file_url`  s      ÿzTestReadHtml.test_file_urlc              	   C   s6   |}t jtdd�� | j|dddid� W 5 Q R X d S )NzNo tables foundr1   r_   rk   Z	tasdfablerm   r=   )rK   rN   r?   r   r   r   Útest_invalid_table_attrsj  s      ÿz%TestReadHtml.test_invalid_table_attrsc                 O   s    | j |f|ždddidœ|—ŽS )NÚMetcalfrk   rl   rm   r   )rK   r§   r*   r+   r   r   r   Ú
_bank_datar  s    ÿÿ ÿÿzTestReadHtml._bank_datac                 C   s*   | j |ddgd�d }t|jtƒs&t‚d S )Nr   r~   ©r{   ©r®   r   rr   r
   r#   ©rK   rN   rZ   r   r   r   Útest_multiindex_headerw  s    z#TestReadHtml.test_multiindex_headerc                 C   s*   | j |ddgd�d }t|jtƒs&t‚d S )Nr   r~   ©rC   )r®   r   Úindexr
   r#   r±   r   r   r   Útest_multiindex_index|  s    z"TestReadHtml.test_multiindex_indexc                 C   s@   | j |ddgddgd�d }t|jtƒs,t‚t|jtƒs<t‚d S )Nr   r~   )r{   rC   )r®   r   rr   r
   r#   r´   r±   r   r   r   Útest_multiindex_header_index�  s    z)TestReadHtml.test_multiindex_header_indexc                 C   s,   | j |ddgdd�d }t|jtƒs(t‚d S ©Nr   r~   )r{   r€   r°   r±   r   r   r   Ú&test_multiindex_header_skiprows_tuples‡  s    z3TestReadHtml.test_multiindex_header_skiprows_tuplesc                 C   s,   | j |ddgdd�d }t|jtƒs(t‚d S r·   r°   r±   r   r   r   Útest_multiindex_header_skiprowsŒ  s    z,TestReadHtml.test_multiindex_header_skiprowsc                 C   sB   | j |ddgddgdd�d }t|jtƒs.t‚t|jtƒs>t‚d S )Nr   r~   )r{   rC   r€   )r®   r   r´   r
   r#   rr   r±   r   r   r   Ú%test_multiindex_header_index_skiprows‘  s       ÿþz2TestReadHtml.test_multiindex_header_index_skiprowsc                 C   sZ   |}| j ttj |¡ƒt t d¡¡ddid�}t|tƒs>t	‚|D ]}t|t
ƒsBt	‚qBd S )NZFloridark   rl   rm   )r   r   r¦   r§   r¨   ÚreÚcompiler   r©   r#   r	   rª   r   r   r   Útest_regex_idempotency™  s    ýz#TestReadHtml.test_regex_idempotencyc              	   C   s2   d}t jt|d�� | j|ddd� W 5 Q R X d S )Nz\(you passed a negative value\)r1   ZWaterr�   r   r=   ©rK   rL   r,   r   r   r   Útest_negative_skiprows¥  s    z#TestReadHtml.test_negative_skiprowsúhttps://docs.python.org/2/c                 C   s&   d}| j |dd�}t|ƒdks"t‚d S )NrÀ   ÚPythonr1   r~   ©r   r"   r#   )rK   r?   rv   r   r   r   Útest_multiple_matchesª  s    z"TestReadHtml.test_multiple_matchesc                 C   s<   d}| j |dd�}dd„ |D ƒ}t|ƒtddgƒks8t‚d S )NrÀ   rÁ   r1   c                 S   s   g | ]}|j d  dd… ‘qS )ro   r   rQ   )rq   )Ú.0rZ   r   r   r   Ú
<listcomp>¶  s     z7TestReadHtml.test_python_docs_table.<locals>.<listcomp>ZRepoZWhat)r   Úsortedr#   )rK   r?   rv   Úzzr   r   r   Útest_python_docs_table±  s    z#TestReadHtml.test_python_docs_tablec                 C   s"   d}|   |¡}t|ƒdkst‚dS )z@
        Make sure that read_html ignores empty tables.
        aà  
            <table>
                <thead>
                    <tr>
                        <th>A</th>
                        <th>B</th>
                    </tr>
                </thead>
                <tbody>
                    <tr>
                        <td>1</td>
                        <td>2</td>
                    </tr>
                </tbody>
            </table>
            <table>
                <tbody>
                </tbody>
            </table>
        r~   NrÂ   )rK   r3   Úresultr   r   r   Útest_empty_tables¹  s    
zTestReadHtml.test_empty_tablesc                 C   s:   |   d¡d }tddgddggddgd	�}t ||¡ d S )
NaÎ  <table>
            <thead>
                <tr>
                    <th>A</th>
                    <th>B</th>
                </tr>
            </thead>
            <tbody>
                <tr>
                    <td>1</td>
                    <td>2</td>
                </tr>
            </tbody>
            <tbody>
                <tr>
                    <td>3</td>
                    <td>4</td>
                </tr>
            </tbody>
        </table>r   r~   ry   rR   rQ   ÚAÚB©r   rr   ©r   r	   r'   r(   ©rK   rÉ   Úexpectedr   r   r   Útest_multiple_tbodyÔ  s    ÿëz TestReadHtml.test_multiple_tbodyc                 C   s0   |   d¡d }tddidgd�}t ||¡ dS )zt
        Don't fail with bs4 when there is a header and only one column
        as described in issue #9178
        a3  <table>
                <thead>
                    <tr>
                        <th>Header</th>
                    </tr>
                </thead>
                <tbody>
                    <tr>
                        <td>first</td>
                    </tr>
                </tbody>
            </table>r   ÚHeaderÚfirst©r   r´   NrÎ   rÏ   r   r   r   Útest_header_and_one_columnò  s    ÿóz'TestReadHtml.test_header_and_one_columnc                 C   s8   |   d¡d }tdddggdddgd	�}t ||¡ d
S )zK
        Ensure parser adds <tr> within <thead> on malformed HTML.
        aœ  <table>
            <thead>
                <tr>
                    <th>Country</th>
                    <th>Municipality</th>
                    <th>Year</th>
                </tr>
            </thead>
            <tbody>
                <tr>
                    <td>Ukraine</td>
                    <th>Odessa</th>
                    <td>1944</td>
                </tr>
            </tbody>
        </table>r   ZUkraineZOdessaé˜  ZCountryZMunicipalityZYearrÍ   NrÎ   rÏ   r   r   r   Útest_thead_without_tr
  s    ÿï
þz"TestReadHtml.test_thead_without_trc                 C   s†   d}t ddggddgd�}t ddgddggddgd�}|jd	d
�}|jdd
�}|  |¡d }|  |¡d }t ||¡ t ||¡ dS )zh
        Make sure that read_html reads tfoot, containing td or th.
        Ignores empty tfoot
        a†  <table>
            <thead>
                <tr>
                    <th>A</th>
                    <th>B</th>
                </tr>
            </thead>
            <tbody>
                <tr>
                    <td>bodyA</td>
                    <td>bodyB</td>
                </tr>
            </tbody>
            <tfoot>
                {footer}
            </tfoot>
        </table>ZbodyAZbodyBrË   rÌ   rÍ   ZfootAZfootBÚ )Úfooterz%<tr><td>footA</td><th>footB</th></tr>r   N)r	   rW   r   r'   r(   )rK   Zdata_templateZ	expected1Z	expected2rž   rŸ   Zresult1Zresult2r   r   r   Útest_tfoot_read(  s     ÿzTestReadHtml.test_tfoot_readc                 C   s4   | j ddd�d }tddggdd�}t ||¡ d S )Na
  
            <table>
                <tr>
                    <td>S</td>
                    <td>I</td>
                </tr>
                <tr>
                    <td>text</td>
                    <td>1944</td>
                </tr>
            </table>
        r   r¯   ÚtextrÖ   )ÚSÚI©rr   rÎ   rÏ   r   r   r   Ú&test_parse_header_of_non_string_columnN  s    óòz3TestReadHtml.test_parse_header_of_non_string_columnc              
      sà   ddl m‰  ‡ fdd„}| j|dddid�d }t|d	d
ddƒttdœd�}|j|jks\t‚ddddddddddg
}dddddddd d!d"g
}| |¡ ||¡}| |¡}	|j	d#d#d$�}
d%d&g}|
|  
t¡|
|< t |
|	¡ d S )'Nr   ©Ú_remove_whitespacec                    s(   z
ˆ | ƒW S  t k
r"   |  Y S X d S r   )ÚAttributeError©r   rà   r   r   Útry_remove_wsi  s    
z8TestReadHtml.test_banklist_header.<locals>.try_remove_wsr­   rk   rl   rm   r   r   Úcsvzbanklist.csv)úUpdated DateúClosing Date©Ú
convertersz,First Vietnamese American Bank In Vietnamesez"Westernbank Puerto Rico En Espanolz*R-G Premier Bank of Puerto Rico En EspanolzEurobank En EspanolzSanderson State Bank En EspanolzLWashington Mutual Bank (Including its subsidiary Washington Mutual Bank FSB)zSilver State Bank En Espanolz%AmTrade International Bank En EspanolzHamilton Bank, NA En Espanolz6The Citizens Savings Bank Pioneer Community Bank, Inc.zFirst Vietnamese American BankzWesternbank Puerto RicozR-G Premier Bank of Puerto RicoZEurobankzSanderson State BankzWashington Mutual BankzSilver State BankzAmTrade International BankzHamilton Bank, NAzThe Citizens Savings BankT)ÚdatetimeÚnumericrç   ræ   )Úpandas.io.htmlrá   r   r   r   Úshaper#   rV   ÚreplaceÚ_convertÚapplyr   r'   r(   )rK   rN   r   rä   rZ   Zground_truthÚoldÚnewZdfnewZgtnewZ	convertedZ	date_colsr   rà   r   Útest_banklist_headere  sH    þõö
z!TestReadHtml.test_banklist_headerc              	   C   sX   d}t |ƒ�}| ¡ }W 5 Q R X ||ks,t‚| j|dddid�d }|| ¡ ksTt‚d S )NzGold Canyonrk   rl   rm   r   )r›   rœ   r#   r   Z	to_string)rK   rN   Úgcr�   Zraw_textrZ   r   r   r   Útest_gold_canyon•  s    
ÿzTestReadHtml.test_gold_canyonc                 C   s4   | j ddd�d }| j ddd�d }t ||¡ d S )Na�  <table>
                        <thead>
                            <tr style="text-align: right;">
                            <th></th>
                            <th>C_l0_g0</th>
                            <th>C_l0_g1</th>
                            <th>C_l0_g2</th>
                            <th>C_l0_g3</th>
                            <th>C_l0_g4</th>
                            </tr>
                        </thead>
                        <tbody>
                            <tr>
                            <th>R_l0_g0</th>
                            <td> 0.763</td>
                            <td> 0.233</td>
                            <td> nan</td>
                            <td> nan</td>
                            <td> nan</td>
                            </tr>
                            <tr>
                            <th>R_l0_g1</th>
                            <td> 0.244</td>
                            <td> 0.285</td>
                            <td> 0.392</td>
                            <td> 0.137</td>
                            <td> 0.222</td>
                            </tr>
                        </tbody>
                    </table>r   r³   a¸  <table>
                    <thead>
                        <tr style="text-align: right;">
                        <th></th>
                        <th>C_l0_g0</th>
                        <th>C_l0_g1</th>
                        <th>C_l0_g2</th>
                        <th>C_l0_g3</th>
                        <th>C_l0_g4</th>
                        </tr>
                    </thead>
                    <tbody>
                        <tr>
                        <th>R_l0_g0</th>
                        <td> 0.763</td>
                        <td> 0.233</td>
                        </tr>
                        <tr>
                        <th>R_l0_g1</th>
                        <td> 0.244</td>
                        <td> 0.285</td>
                        <td> 0.392</td>
                        <td> 0.137</td>
                        <td> 0.222</td>
                        </tr>
                    </tbody>
                 </table>)r   r'   r(   )rK   rÐ   rÉ   r   r   r   Útest_different_number_of_cols¡  s    á à"äãz*TestReadHtml.test_different_number_of_colsc                 C   s8   |   d¡d }tdddggdddgd	�}t ||¡ d S )
NaZ  
            <table>
                <tr>
                    <th>A</th>
                    <th colspan="1">B</th>
                    <th rowspan="1">C</th>
                </tr>
                <tr>
                    <td>a</td>
                    <td>b</td>
                    <td>c</td>
                </tr>
            </table>
        r   ÚaÚbÚcrË   rÌ   ÚCrÞ   rÎ   rÏ   r   r   r   Útest_colspan_rowspan_1å  s    ÿñz#TestReadHtml.test_colspan_rowspan_1c                 C   sD   | j ddd�d }tdddddggdd	d
ddgd�}t ||¡ d S )Na…  
            <table>
                <tr>
                    <td colspan="2">X</td>
                    <td>Y</td>
                    <td rowspan="2">Z</td>
                    <td>W</td>
                </tr>
                <tr>
                    <td>A</td>
                    <td colspan="2">B</td>
                    <td>C</td>
                </tr>
            </table>
        r   r¯   rË   rÌ   ÚZrú   ÚXzX.1ÚYÚWrÍ   rÎ   rÏ   r   r   r   Ú test_colspan_rowspan_copy_valuesü  s    ðï ÿz-TestReadHtml.test_colspan_rowspan_copy_valuesc                 C   sD   | j ddd�d }tdddddggddddd	gd
�}t ||¡ d S )Na(  
            <table>
                <tr>
                    <td rowspan="2">A</td>
                    <td rowspan="2" colspan="3">B</td>
                    <td>C</td>
                </tr>
                <tr>
                    <td>D</td>
                </tr>
            </table>
        r   r¯   rË   rÌ   ÚDzB.1zB.2rú   rÍ   rÎ   rÏ   r   r   r   Útest_colspan_rowspan_both_not_1  s    óò ÿz,TestReadHtml.test_colspan_rowspan_both_not_1c                 C   s8   | j ddd�d }tddggddgd�}t ||¡ d S )Nzñ
            <table>
                <tr>
                    <td>A</td>
                    <td rowspan="2">B</td>
                </tr>
                <tr>
                    <td>C</td>
                </tr>
            </table>
        r   r¯   rú   rÌ   rË   rÍ   rÎ   rÏ   r   r   r   Útest_rowspan_at_end_of_row;  s    ôóz'TestReadHtml.test_rowspan_at_end_of_rowc                 C   s>   | j ddd�d }tddgddggddgd�}t ||¡ d S )Nz³
            <table>
                <tr>
                    <td rowspan="3">A</td>
                    <td rowspan="3">B</td>
                </tr>
            </table>
        r   r¯   rË   rÌ   rÍ   rÎ   rÏ   r   r   r   Útest_rowspan_only_rowsV  s    ÷
öz#TestReadHtml.test_rowspan_only_rowsc                 C   sT   |   d¡d }tddgddggddgddggd�}tdd	gg|d
�}t ||¡ d S )Nam  
            <table>
                <tr>
                    <th>A</th>
                    <th>B</th>
                </tr>
                <tr>
                    <th>a</th>
                    <th>b</th>
                </tr>
                <tr>
                    <td>1</td>
                    <td>2</td>
                </tr>
            </table>
        r   rË   rÌ   r÷   rø   r~   ©ZlevelsÚcodesry   rÍ   ©r   r
   r	   r'   r(   ©rK   rÉ   rr   rÐ   r   r   r   Ú+test_header_inferred_from_rows_with_only_thi  s    ÿï$z8TestReadHtml.test_header_inferred_from_rows_with_only_thc                 C   sd   t dtddd�iƒ}| ¡ }| j|dgdd�}t ||d ¡ | j|dgdd�}t ||d ¡ d S )NÚdateú1/1/2001é
   ©Zperiodsr~   r   ©Zparse_datesrC   )r	   r   rY   r   r'   r(   )rK   rZ   rÐ   r\   r   r   r   Útest_parse_dates_listƒ  s    z"TestReadHtml.test_parse_dates_listc                 C   sn   t tddd�ƒ}t| dd„ ¡| dd„ ¡dœƒ}| j| ¡ dd	d
gid	d�}td|iƒ}t ||d ¡ d S )Nr  r  r  c                 S   s   t |  ¡ ƒS r   )Ústrr
  rã   r   r   r   r    �  r!   z7TestReadHtml.test_parse_dates_combine.<locals>.<lambda>c                 S   s   t |  ¡ ƒS r   )r  Útimerã   r   r   r   r    �  r!   )r
  r  rê   r~   ry   r  r   )r   r   r	   r%   r   rY   r'   r(   )rK   Z	raw_datesrZ   r\   Znewdfr   r   r   Útest_parse_dates_combine‹  s    þÿ 
 ÿz%TestReadHtml.test_parse_dates_combinec                 C   s°   |ddddƒ}t j |¡s,tt|ƒ› d�ƒ‚t j |¡sJtt|ƒ› d�ƒ‚| j|ddd	�d
 }|jdkslt‚d|jd ks~t‚|d j	t
 	d¡ks–t‚t
 |jd d¡s¬t‚d S )Nr   r   r3   úwikipedia_states.htmlz is not a filez is an empty fileÚArizonar~   rz   r   )é<   é   ÚUnnamedr�   úsq miÚfloat64)r   r  çHázPN$A)r¦   r§   Úisfiler#   ÚreprÚgetsizer   rí   rr   ÚdtyperS   ÚallcloseÚloc©rK   r   r   rÉ   r   r   r   Útest_wikipedia_states_table™  s    z(TestReadHtml.test_wikipedia_states_tablec                 C   sp   |ddddƒ}| j |ddd�d }|jdks0t‚d	|jd
 d ksFt‚|jjdksVt‚t |jd d¡slt‚d S )Nr   r   r3   r  r  r   r“   )r  é   r  r�   r~   ry   )ZAlaska)zTotal area[2]r  r  )r   rí   r#   rr   ZnlevelsrS   r  r   r!  r   r   r   Ú test_wikipedia_states_multiindex£  s    z-TestReadHtml.test_wikipedia_states_multiindexc                 C   sB   | j dddgd�}tddggt ddg¡d	�}t |d |¡ d S )
NaK  
                <table>
                    <thead>
                        <tr><th></th><th></tr>
                        <tr><th>A</th><th>B</th></tr>
                    </thead>
                    <tbody>
                        <tr><td>a</td><td>b</td></tr>
                    </tbody>
                </table>
            r   r~   r¯   r÷   rø   )úUnnamed: 0_level_0rË   )zUnnamed: 1_level_0rÌ   rÞ   )r   r	   r
   Úfrom_tuplesr'   r(   rÏ   r   r   r   Ú%test_parser_error_on_empty_header_row«  s    ôÿþz2TestReadHtml.test_parser_error_on_empty_header_rowc                 C   sL   | j ddd�d }tddidgd�}|d jt d¡ks<t‚t ||¡ d S )	Na�  <html>
            <body>
             <table>
                <thead>
                    <tr>
                        <th>Header</th>
                    </tr>
                </thead>
                <tbody>
                    <tr>
                        <td>1100#101</td>
                    </tr>
                </tbody>
            </table>
            </body>
        </html>ú#)Údecimalr   rÒ   g–C‹lg0‘@rÔ   r  )r   r	   r  rS   r#   r'   r(   rÏ   r   r   r   Útest_decimal_rowsÂ  s    ïîzTestReadHtml.test_decimal_rowsÚargFc              	   C   s6   t  d¡}tjt|d�� | j||d� W 5 Q R X d S )Nz–Passing a bool to header is invalid. Use header=None for no header or header=int or list-like of ints to specify the row(s) making up the column namesr1   r¯   )r»   Úescaper8   r9   r�   r   )rK   rL   r+  r,   r   r   r   Útest_bool_header_argÝ  s
    ÿz!TestReadHtml.test_bool_header_argc                 C   s6   | j ddtid�d }tdddgiƒ}t ||¡ d S )Naƒ  <table>
                 <thead>
                   <tr>
                     <th>a</th>
                    </tr>
                 </thead>
                 <tbody>
                   <tr>
                     <td> 0.763</td>
                   </tr>
                   <tr>
                     <td> 0.244</td>
                   </tr>
                 </tbody>
               </table>r÷   rè   r   z0.763z0.244)r   r  r	   r'   r(   rÏ   r   r   r   Útest_convertersè  s    ðïzTestReadHtml.test_convertersc                 C   s6   | j ddgd�d }tddtjgiƒ}t ||¡ d S )Na‚  <table>
                 <thead>
                   <tr>
                     <th>a</th>
                   </tr>
                 </thead>
                 <tbody>
                   <tr>
                     <td> 0.763</td>
                   </tr>
                   <tr>
                     <td> 0.244</td>
                   </tr>
                 </tbody>
               </table>g¬Zd;Ï?)Z	na_valuesr   r÷   gÑ"Ûù~jè?©r   r	   rS   Únanr'   r(   rÏ   r   r   r   Útest_na_values  s    ðïzTestReadHtml.test_na_valuesc                 C   sh   d}t dddgiƒ}| j|dd�d }t ||¡ t dtjtjgiƒ}| j|dd�d }t ||¡ d S )	Naé  <table>
                        <thead>
                            <tr>
                            <th>a</th>
                            </tr>
                        </thead>
                        <tbody>
                            <tr>
                            <td> N/A</td>
                            </tr>
                            <tr>
                            <td> NA</td>
                            </tr>
                        </tbody>
                    </table>r÷   zN/AZNAF)Zkeep_default_nar   T)r	   r   r'   r(   rS   r0  )rK   Z	html_dataÚexpected_dfÚhtml_dfr   r   r   Útest_keep_default_na  s    z!TestReadHtml.test_keep_default_nac                 C   s>   |   d¡d }tddgtjtjggddgd�}t ||¡ d S )Nak  
            <table>
                <tr>
                    <th>A</th>
                    <th>B</th>
                </tr>
                <tr>
                    <td>a</td>
                    <td>b</td>
                </tr>
                <tr>
                    <td></td>
                    <td></td>
                </tr>
            </table>
        r   r÷   rø   rË   rÌ   rÍ   r/  rÏ   r   r   r   Útest_preserve_empty_rows3  s    ÿï z%TestReadHtml.test_preserve_empty_rowsc                 C   sT   |   d¡d }tddgddggddgddggd�}tdd	gg|d
�}t ||¡ d S )NaU  
            <table>
                <thead>
                    <tr><th></th><th></tr>
                    <tr><th>A</th><th>B</th></tr>
                    <tr><th>a</th><th>b</th></tr>
                </thead>
                <tbody>
                    <tr><td>1</td><td>2</td></tr>
                </tbody>
            </table>
        r   rË   rÌ   r÷   rø   r~   r  ry   rÍ   r  r  r   r   r   Ú,test_ignore_empty_rows_when_inferring_headerK  s    ÿó$z9TestReadHtml.test_ignore_empty_rows_when_inferring_headerc                 C   sP   t dddgd�}dddgdd	d
gg|_|jdd�}|  |¡d }t ||¡ d S )N)ZHillaryéD   r  )ZBernieéJ   r  )ZDonaldéE   ÚR)r   r%  ZAgeZPartyÚNamezUnnamed: 1_level_1zUnnamed: 2_level_1F©r´   r   )r	   rr   rY   r   r'   r(   )rK   r2  r3   r3  r   r   r   Útest_multiple_header_rows`  s    ÿþz&TestReadHtml.test_multiple_header_rowsc                 C   s@   |ddddƒ}| j |dd�}t|tƒs*t‚t|d tƒs<t‚d S )Nr   r   r3   rB   r   r³   )r   r   r©   r#   r	   )rK   r   rE   rv   r   r   r   Útest_works_on_valid_markupm  s    z'TestReadHtml.test_works_on_valid_markupc                 C   s&   |ddddƒ}| j |dddgd� d S )	Nr   r   r3   rM   rh   rA   r/   r<   r   )rK   r   rN   r   r   r   Útest_fallback_successs  s    z"TestReadHtml.test_fallback_successc                 C   s:   t ddd�}ttj dd¡|d�}| ¡ }d|ks6t‚d S )Nz
2000-01-01r  r  rQ   r<  )r   r	   rS   rT   ZrandnrY   r#   )rK   ÚrngrZ   rÉ   r   r   r   Útest_to_html_timestampx  s    z#TestReadHtml.test_to_html_timestampc                 C   s¸   t dddœgƒ}| ¡ }|jdd�}|jdd�}|jdd�}|jdd�}|jdd�}d|ks`t‚||kslt‚||ksxt‚||ks„t‚d	|ks�t‚d
|ksœt‚d|ks¨t‚||ks´t‚d S )Nr~   ry   )rË   rÌ   T)Úborderr   Fz border="1"z border="2"z border="0"z border)r	   rY   r#   )rK   rZ   Zout_border_defaultZout_border_trueZout_border_explicit_defaultZout_border_nondefaultZout_border_zeroZout_border_falser   r   r   Útest_to_html_borderless  s    z$TestReadHtml.test_to_html_borderlesszdisplayed_only,exp0,exp1ZfooNzfoo  bar  baz  quxc                 C   sT   t dƒ}| j||d�}t |d |¡ |d k	r@t |d |¡ nt|ƒdksPt‚d S )Na  <html>
          <body>
            <table>
              <tr>
                <td>
                  foo
                  <span style="display:none;text-align:center">bar</span>
                  <span style="display:none">baz</span>
                  <span style="display: none">qux</span>
                </td>
              </tr>
            </table>
            <table style="display: none">
              <tr>
                <td>foo</td>
              </tr>
            </table>
          </body>
        </html>)Údisplayed_onlyr   r~   )r   r   r'   r(   r"   r#   )rK   rD  Zexp0Zexp1r   rv   r   r   r   Útest_displayed_only’  s    	ÿz TestReadHtml.test_displayed_onlyz\ignore:You provided Unicode markup but also provided a value for from_encoding.*:UserWarningc           
   	   C   sô   t j |¡}t j |¡d }| d¡\}}z�t|dƒ�}| j| ¡ |dd� ¡ }W 5 Q R X t|dƒ�"}| jt	| ¡ ƒ|dd� ¡ }W 5 Q R X | j||dd� ¡ }	t
 ||¡ t
 ||	¡ W n4 tk
rî   tƒ rèd|ksàd|krèt ¡  ‚ Y nX d S )Nr   Ú_Úrb)rš   rC   Z16Z32)r¦   r§   ÚbasenameÚsplitextÚsplitr›   r   rœ   Úpopr   r'   r(   Ú	Exceptionr   r8   Úskip)
rK   r   Ú	base_pathÚrootrF  rš   ZfobjZfrom_stringZfrom_file_likeÚfrom_filenamer   r   r   Útest_encode¹  s8      ÿ
  ÿ  ÿ
zTestReadHtml.test_encodec              	   C   sj   | j j d¡dkrt d¡ G dd„ dtƒ}|dƒ}|   |¡sBt‚tjtdd�� |   |¡ W 5 Q R X d S )	Nr6   rA   zNot applicable for lxmlc                   @   s   e Zd Zdd„ ZdS )zFTestReadHtml.test_parse_failure_unseekable.<locals>.UnseekableStringIOc                 S   s   dS ©NFr   r£   r   r   r   Úseekableà  s    zOTestReadHtml.test_parse_failure_unseekable.<locals>.UnseekableStringIO.seekableN)Ú__name__Ú
__module__Ú__qualname__rS  r   r   r   r   ÚUnseekableStringIOß  s   rW  z?
            <table><tr><td>spam<foobr />eggs</td></tr></table>z#passed a non-rewindable file objectr1   )	r   ÚkeywordsÚgetr8   rM  r   r#   r9   r>   )rK   rW  Úbadr   r   r   Útest_parse_failure_unseekableÙ  s    
ÿz*TestReadHtml.test_parse_failure_unseekablec                 C   s>   G dd„ dƒ}|dƒ}|dƒ}|   |¡s,t‚|   |¡s:t‚d S )Nc                   @   s<   e Zd Zddœdd„Zddd„Zdd„ Zd	d
„ Zdd„ ZdS )z9TestReadHtml.test_parse_failure_rewinds.<locals>.MockFileN)Úreturnc                 S   s   || _ d| _d S rR  )r   Úat_end)rK   r   r   r   r   Ú__init__ñ  s    zBTestReadHtml.test_parse_failure_rewinds.<locals>.MockFile.__init__c                 S   s   | j r
dn| j}d| _ |S )NrØ   T)r]  r   )rK   Úsizer   r   r   r   rœ   õ  s    z>TestReadHtml.test_parse_failure_rewinds.<locals>.MockFile.readc                 S   s
   d| _ d S rR  )r]  )rK   Úoffsetr   r   r   Úseekú  s    z>TestReadHtml.test_parse_failure_rewinds.<locals>.MockFile.seekc                 S   s   dS )NTr   r£   r   r   r   rS  ý  s    zBTestReadHtml.test_parse_failure_rewinds.<locals>.MockFile.seekablec                 S   s   dst ‚d S rR  )r#   r£   r   r   r   Ú__iter__   s    zBTestReadHtml.test_parse_failure_rewinds.<locals>.MockFile.__iter__)N)rT  rU  rV  r^  rœ   ra  rS  rb  r   r   r   r   ÚMockFileð  s
   
rc  z/<table><tr><td>spam<br />eggs</td></tr></table>z2<table><tr><td>spam<foobr />eggs</td></tr></table>)r   r#   )rK   rc  ZgoodrZ  r   r   r   Útest_parse_failure_rewindsí  s
    z'TestReadHtml.test_parse_failure_rewindsc                 C   s�   G dd„ dt jƒ}ttjjƒ |ddddƒ}|| j|fd�}|| j|fd�}| ¡  | ¡  | ¡ s\| ¡ rnq\d |j	  kr†|j	ksŒn t
‚d S )Nc                       s   e Zd Z‡ fdd„Z‡  ZS )z@TestReadHtml.test_importcheck_thread_safety.<locals>.ErrorThreadc              
      sB   zt ƒ  ¡  W n( tk
r6 } z
|| _W 5 d }~X Y nX d | _d S r   )ÚsuperÚrunrL  Úerr)rK   rg  ©Ú	__class__r   r   rf    s
    zDTestReadHtml.test_importcheck_thread_safety.<locals>.ErrorThread.run)rT  rU  rV  rf  Ú__classcell__r   r   rh  r   ÚErrorThread  s   rk  r   r   r3   rB   )Útargetr*   )Ú	threadingÚThreadr   Úpandasr   r3   r   ÚstartÚis_aliverg  r#   )rK   r   rk  rE   Zhelper_thread1Zhelper_thread2r   r   r   Útest_importcheck_thread_safety
  s    
z+TestReadHtml.test_importcheck_thread_safetyc                 C   sB   |ddddƒ}t |ƒ}|  |¡d }|  |¡d }t ||¡ d S )Nr   r   r3   r4   r   )r   r   r'   r(   )rK   r   Zfile_path_stringÚ	file_pathrc   rd   r   r   r   Útest_parse_path_object%  s
    z#TestReadHtml.test_parse_path_objectc                 C   s0   |   d¡d }tdggdgd�}t ||¡ d S )NzÓ
            <table>
                <tr>
                    <th>A</th>
                </tr>
                <tr>
                    <td>word1<br>word2</td>
                </tr>
            </table>
        r   zword1 word2rË   rÍ   rÎ   rÏ   r   r   r   Útest_parse_br_as_space-  s    ÿõz#TestReadHtml.test_parse_br_as_spacer$   Úbodyr{   rÙ   c           	      C   sÚ   d}dddgdddgdd	dgd
ddgddd gddd gdœ}|d }|d }|d }|dkrt|d }|d }|d }n4|dkr†|d }n"|dkr˜|d }n|dkr¨|d }| j ||d�d }t||g|d�}t ||¡ d S )Naì  
          <table>
            <tr>
              <th>HTTP</th>
              <th>FTP</th>
              <th><a href="https://en.wiktionary.org/wiki/linkless">Linkless</a></th>
            </tr>
            <tr>
              <td><a href="https://en.wikipedia.org/">Wikipedia</a></td>
              <td>SURROUNDING <a href="ftp://ftp.us.debian.org/">Debian</a> TEXT</td>
              <td>Linkless</td>
            </tr>
            <tfoot>
              <tr>
                <td><a href="https://en.wikipedia.org/wiki/Page_footer">Footer</a></td>
                <td>
                  Multiple <a href="1">links:</a> <a href="2">Only first captured.</a>
                </td>
              </tr>
            </tfoot>
          </table>
          ÚHTTPÚFTPÚLinkless)rw  N)rx  N)ry  z'https://en.wiktionary.org/wiki/linklessÚ	WikipediaúSURROUNDING Debian TEXT)rz  zhttps://en.wikipedia.org/)r{  zftp://ftp.us.debian.org/)ry  NÚFooterú$Multiple links: Only first captured.)r|  z)https://en.wikipedia.org/wiki/Page_footer)r}  Ú1)Úhead_ignoreÚhead_extractÚbody_ignoreÚbody_extractÚfooter_ignoreÚfooter_extractr�  rƒ  r  r$   r‚  r„  r€  rv  rÙ   r{   ©Zextract_linksr   rÞ   rÎ   )	rK   r+  Zgh_13141_dataZgh_13141_expectedZdata_expZfoot_expZhead_exprÉ   rÐ   r   r   r   Útest_extract_links@  sH    ýýýýî


zTestReadHtml.test_extract_linksc              	   C   s.   d}t jt|d�� t|dd� W 5 Q R X d S )NzY`extract_links` must be one of {None, "header", "footer", "body", "all"}, got "incorrect"r1   Z	incorrectr…  r=   r¾   r   r   r   Útest_extract_links_bad„  s    ÿz#TestReadHtml.test_extract_links_badc                 C   s2   d}| j |dd�d }tdggƒ}t ||¡ d S )Nz¦
        <table>
          <tr>
            <td>
              <a href='https://google.com'>Google.com</a>
            </td>
          </tr>
        </table>
        r$   r…  r   )z
Google.comzhttps://google.comrÎ   )rK   r   rÉ   rÐ   r   r   r   Ú test_extract_links_all_no_headerŒ  s    	z-TestReadHtml.test_extract_links_all_no_header)arT  rU  rV  r8   ÚfixturerL   rN   rP   r]   ÚmarkÚnetworkr'   re   rf   rj   Zslowrn   rt   rw   rx   r|   r�   r„   r†   r‡   rˆ   r‹   rŽ   r�   r‘   r”   r–   r—   r˜   r    r¡   r¢   r¤   r¥   r«   r¬   r®   r²   rµ   r¶   r¸   r¹   rº   r½   r¿   rÃ   rÈ   rÊ   rÑ   rÕ   r×   rÚ   rß   ró   rõ   rö   rû   r   r  r  r  r	  r  r  r"  r$  r'  r*  Úparametrizer-  r.  r1  r4  r5  r6  r=  r>  r?  rA  rC  r	   rE  ÚfilterwarningsrQ  r[  rd  rr  rt  ru  r†  r‡  rˆ  r   r   r   r   rI   a   s  	


ûûû

		
	







&
/
D!



þþ
 ÿ


CrI   )1Ú	functoolsr   Ú	importlibr   r   r   r   r¦   Úpathlibr   r»   rm  Úurllib.errorr   ÚnumpyrS   r8   Zpandas.compatr   Zpandas.util._test_decoratorsÚutilZ_test_decoratorsÚtdro  r	   r
   r   r   r   r   r   Zpandas._testingZ_testingr'   Zpandas.io.commonr   rì   r   r‰  r   r-   Z
skip_if_nor;   r@   rF   rŠ  rŒ  r   rI   r   r   r   r   Ú<module>   sR   $	üÿ
	þú