
    Mh	                     |    S SK r S SKrS SKJr  \ R                  " S5      r\ R                  S 5       r	 " S S5      r
g)    Ntablesc              #     #    [         R                  SS9[         R                  SSS9[         R                  SS9S.nSnUSSS.US-   S	SS.US-   S
SS.US-   SSS./nSnU S-  n[         R	                  USS9 nUR                  SXAS9nU HD  nUR                  5        H  u  pXR                  U	'   M     UR                  R                  5         MF     SSS5        XT[        R                  " U5      4v   g! , (       d  f       N)= f7f)z,
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              V/var/www/html/env/lib/python3.13/site-packages/pandas/tests/io/pytables/test_compat.pypytables_hdf5_filer-   	   s     1%qa(oo!o$L 
B *AvWA.AvWE2AvWM:	K 'G00D			$S		)QNN3WNG!F$lln
"c
 -EELLN " 
* k2
22 
*	)s   A7D9AC7#D7
DDc                   0    \ rS rSrSrS rS rS rS rSr	g)	TestReadPyTablesHDF5*   z
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                 d    Uu  p#n[         R                  " X#S9nUn[        R                  " XVSS9  g )N)r*   Tcheck_index_type)r   read_hdftmassert_frame_equalselfr-   r&   r%   dfresultexpecteds          r,   test_read_complete'TestReadPyTablesHDF5.test_read_complete2   s/    .rT/
fF    c                     Uu  p#n[         R                  " X#SS9nUSS  R                  SS9n[        R                  " XVSS9  g )Nr   )r*   startTdropr2   r   r4   reset_indexr5   r6   r7   s          r,   test_read_with_start)TestReadPyTablesHDF5.test_read_with_start8   sE    .rTa8ab6%%4%0
fFr>   c                     Uu  p#n[         R                  " X#SS9nUS S R                  SS9n[        R                  " XVSS9  g )Nr   )r*   stopTrA   r2   rC   r7   s          r,   test_read_with_stop(TestReadPyTablesHDF5.test_read_with_stop?   sE    .rTQ7bq6%%4%0
fFr>   c                     Uu  p#n[         R                  " X#SSS9nUSS R                  SS9n[        R                  " XVSS9  g )Nr   r   )r*   r@   rH   TrA   r2   rC   r7   s          r,   test_read_with_startstop-TestReadPyTablesHDF5.test_read_with_startstopF   sG    .rTaa@a7&&D&1
fFr>    N)
__name__
__module____qualname____firstlineno____doc__r<   rE   rI   rL   __static_attributes__rN   r>   r,   r/   r/   *   s    GGGGr>   r/   )pytestpandasr   pandas._testing_testingr5   importorskipr   fixturer-   r/   rN   r>   r,   <module>r[      sC      			X	& 3 3@!G !Gr>   