
    _ei	                     |    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
y)    Ntablesc                    t         j                  d      t         j                  dd      t         j                  d      d}d}|ddd|dz   d	dd|dz   d
dd|dz   dddg}d}t         j	                  | d      5 }|j                  d||      }|D ]C  }|j                         D ]  \  }}	|	|j                  |<    |j                  j                          E 	 ddd       | |t        j                  |      fS # 1 sw Y   !xY w)z4
    Use PyTables to create a simple HDF5 file.
    r   )pos         )c0c1c2g   $CAaaaaabbbbbccccci    dddddl    pandas_test_timeseriesw)mode/)namedescriptionN)r   	Time64Col	StringColInt64Col	open_filecreate_tableitemsrowappendpd	DataFrame)
temp_h5_pathtable_schemat0testsamplesobjnameftsamplekeyvalues
             Z/var/www/ceduoda/envi/lib/python3.12/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			,S		1 QNN3W,NG! 	F$lln #
U"c
#EELLN	 ",,{";;; s   >AC<<Dc                   (    e Zd ZdZd Zd Zd Zd Zy)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                 r    |\  }}}t        j                  ||      }|}t        j                  ||d       y )N)r)   Tcheck_index_type)r   read_hdftmassert_frame_equalselfr,   pathr%   dfresultexpecteds          r+   test_read_completez'TestReadPyTablesHDF5.test_read_complete1   s5    .grTw/
fhF    c                     |\  }}}t        j                  ||d      }|dd  j                  d      }t        j                  ||d       y )Nr   )r)   startTdropr0   r   r2   reset_indexr3   r4   r5   s          r+   test_read_with_startz)TestReadPyTablesHDF5.test_read_with_start7   sK    .grTwa8ab6%%4%0
fhFr<   c                     |\  }}}t        j                  ||d      }|d d j                  d      }t        j                  ||d       y )Nr   )r)   stopTr?   r0   rA   r5   s          r+   test_read_with_stopz(TestReadPyTablesHDF5.test_read_with_stop>   sK    .grTwQ7bq6%%4%0
fhFr<   c                     |\  }}}t        j                  ||dd      }|dd j                  d      }t        j                  ||d       y )Nr   r   )r)   r>   rE   Tr?   r0   rA   r5   s          r+   test_read_with_startstopz-TestReadPyTablesHDF5.test_read_with_startstopE   sM    .grTwaa@a7&&D&1
fhFr<   N)__name__
__module____qualname____doc__r;   rC   rF   rH    r<   r+   r.   r.   )   s    GGGGr<   r.   )pytestpandasr   pandas._testing_testingr3   importorskipr   fixturer,   r.   rM   r<   r+   <module>rT      sD      			X	& < <>!G !Gr<   