
    Owg	                     |    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              #   (  K   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}| dz  }t         j	                  |d      5 }|j                  d||      }|D ]C  }|j                         D ]  \  }	}
|
|j                  |	<    |j                  j                          E 	 ddd       ||t        j                  |      f y# 1 sw Y   $xY ww)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              [/var/www/horilla/myenv/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00D			$S		) QNN3W,NG! 	F$lln #
U"c
#EELLN	 k2
22 s   BDAD##DD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-   r&   r%   dfresultexpecteds          r,   test_read_completez'TestReadPyTablesHDF5.test_read_complete2   s5    .grTw/
fhF    c                     |\  }}}t        j                  ||d      }|dd  j                  d      }t        j                  ||d       y )Nr   )r*   startTdropr1   r   r3   reset_indexr4   r5   r6   s          r,   test_read_with_startz)TestReadPyTablesHDF5.test_read_with_start8   sK    .grTwa8ab6%%4%0
fhFr<   c                     |\  }}}t        j                  ||d      }|d d j                  d      }t        j                  ||d       y )Nr   )r*   stopTr?   r1   rA   r6   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?   r1   rA   r6   s          r,   test_read_with_startstopz-TestReadPyTablesHDF5.test_read_with_startstopF   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_testingr4   importorskipr   fixturer-   r/   rM   r<   r,   <module>rT      sE      			X	& 3 3@!G !Gr<   