
    bMh	                     |    d dl Z d dlZd dlmZ  e j        d          Ze j        d             Z	 G d d          Z
dS )    Ntablesc              #   N  K   t                               d          t                               dd          t                               d          d}d}|ddd|dz   d	dd|dz   d
dd|dz   dddg}d}| dz  }t                               |d          5 }|                    d||          }|D ]?}|                                D ]\  }	}
|
|j        |	<   |j                                         @	 ddd           n# 1 swxY w Y   ||t          j
        |          fV  dS )z4
    Use PyTables to create a simple HDF5 file.
    r   )pos         )c0c1c2g   $CAaaaaabbbbbccccci    dddddl    pandas_test_timeserieszwritten_with_pytables.h5w)mode/)namedescriptionN)r   	Time64Col	StringColInt64Col	open_filecreate_tableitemsrowappendpd	DataFrame)tmp_pathtable_schemat0testsamplesobjnamepathftsamplekeyvalues              d/var/www/html/test/jupyter/venv/lib/python3.11/site-packages/pandas/tests/io/pytables/test_compat.pypytables_hdf5_filer-   	   s      1%%qa((oo!o$$ L 
B **AvWA..AvWE22AvWM::	K 'G00D			$S		)	) QNN3W,NGG! 	 	F$llnn # #
U"c

ELLNNNN	               k22
222222s   ADDDc                   *    e Zd ZdZd Zd Zd Zd ZdS )TestReadPyTablesHDF5z
    A group of tests which covers reading HDF5 files written by plain PyTables
    (not written by pandas).

    Was introduced for regression-testing issue 11188.
    c                 p    |\  }}}t          j        ||          }|}t          j        ||d           d S )N)r*   Tcheck_index_type)r   read_hdftmassert_frame_equalselfr-   r&   r%   dfresultexpecteds          r,   test_read_completez'TestReadPyTablesHDF5.test_read_complete2   sE    .grTw///
fhFFFFFF    c                     |\  }}}t          j        ||d          }|dd                              d          }t          j        ||d           d S )Nr   )r*   startTdropr1   r   r3   reset_indexr4   r5   r6   s          r,   test_read_with_startz)TestReadPyTablesHDF5.test_read_with_start8   s`    .grTwa888abb6%%4%00
fhFFFFFFr<   c                     |\  }}}t          j        ||d          }|d d                             d          }t          j        ||d           d S )Nr   )r*   stopTr?   r1   rA   r6   s          r,   test_read_with_stopz(TestReadPyTablesHDF5.test_read_with_stop?   s`    .grTwQ777bqb6%%4%00
fhFFFFFFr<   c                     |\  }}}t          j        ||dd          }|dd                             d          }t          j        ||d           d S )Nr   r   )r*   r>   rE   Tr?   r1   rA   r6   s          r,   test_read_with_startstopz-TestReadPyTablesHDF5.test_read_with_startstopF   sb    .grTwaa@@@ac7&&D&11
fhFFFFFFr<   N)__name__
__module____qualname____doc__r;   rC   rF   rH    r<   r,   r/   r/   *   sh         G G GG G GG G GG G G G Gr<   r/   )pytestpandasr   pandas._testing_testingr4   importorskipr   fixturer-   r/   rM   r<   r,   <module>rT      s              		X	&	& 3 3 3@!G !G !G !G !G !G !G !G !G !Gr<   