+
    xȇi'                        ^ RI Ht ^ RIt^ RIt^ RIt^ RIHt ^ RIt	^ RIH
t
HtHtHtHtHtHt ^ RIHt ]P(                  P*                  .tR tR tR tR	 tR
 t]P(                  P9                  ]! 4       RR7      R 4       tR tR tR t R t!R t"R t#R t$]P(                  PK                  RRR.4      R 4       t&R t'R t(R# )    )closingN)is_platform_windows)	DataFrameHDFStoreIndexSeries_testing
date_rangeread_hdf)TableIteratorc                 ,   \        R \        ^4      R\        ^4      /4      pVP                  V RR7       \        P                  ! \
        RR7      ;_uu_ 4        \        V R4       RRR4       VP                  V RR7       R#   + '       g   i     L%; i)abk1key 'No object named k2 in the file'matchk2N)r   rangeto_hdfpytestraisesKeyErrorr   temp_h5_pathdfs   & r/Users/max/.openclaw/workspace/postharvest/venv/lib/python3.14/site-packages/pandas/tests/io/pytables/test_read.py!test_read_missing_key_close_storer       sk    	Cq3a1	2BIIlI%	x'I	J	Jt$ 
K
 IIlI% 
K	Js   BB	c                    \        R . R. /. R7      pVP                  V RR7       \        P                  ! \        RR7      ;_uu_ 4        \        V R^ R7       RRR4       VP                  V RR7       R#   + '       g   i     L%; i)	AB)indexr   r   zlist index out of ranger   stopN)r   r   r   r   
IndexErrorr   r   s   & r   !test_read_index_error_close_storer(   &   sg    	CS"%R	0BIIlI%	z)C	D	Dt!, 
E
 IIlI% 
E	Ds   	A55B	c           	         \        R \        ^4      R\        ^4      /4      pVP                  V RR7       \        V R4      ;_uu_ 4       p\        P
                  ! \        RR7      ;_uu_ 4        \        VR4       RRR4       \        VR4       RRR4       R#   + '       g   i     L&; i  + '       g   i     R# ; i)	r   r   r   r   rr   r   r   N)r   r   r   r   r   r   r   r   )r   r   stores   &  r   "test_read_missing_key_opened_storer,   3   s    	Cq3a1	2BIIlI%	,	$	$]]8+MNNUD! O
 	 
%	$NN 
%	$	$s$   	%B,.B	;B,B)$B,,B=	c           
      `   \        \        P                  P                  ^4      P	                  R4      \        \        R4      4      \        R^
RR7      R7      p\        P                  ! \        RR7      ;_uu_ 4        V P                  RR	4       R
R
R
4       V P                  RV4       \        P                  ! \        \        P                  ! R4      R7      ;_uu_ 4        V P                  RR4       R
R
R
4       \        P                  ! R4      p\        P                  ! \        VR7      ;_uu_ 4        V P                  RR	R.R7       R
R
R
4       V P                  RR	4      p\         P"                  ! VP$                  \'        VP(                  4      P$                  4       \+        V\&        4      '       g   Q h\        P                  ! R4      p\        P                  ! \,        VR7      ;_uu_ 4        V P                  RR4       R
R
R
4       VP/                  4       pRVR&   V P                  RVR.R7       V P                  RR4      p\         P"                  ! VP$                  VR,          P$                  4       VP/                  4       pRVR&   \        P0                  VP2                  VP(                  R,          R3&   V P                  RVR.R7       V P                  RR4      p\         P"                  ! VP$                  VR,          P$                  4       V P                  RR^R7      p\         P"                  ! VP$                  VR,          P$                  R,          4       V P                  RRR R7      p\         P"                  ! VP$                  VR,          P$                  R R
 4       V P                  RR^R7      p\         P"                  ! VP$                  VR,          P$                  R,          4       V P                  RRR R7      p\         P"                  ! VP$                  VR,          P$                  R
R  4       V P                  RR^R R7      p\         P"                  ! VP$                  VR,          P$                  ^R  4       V P                  RRR ^R7      p\         P"                  ! VP$                  VR,          P$                  R ^ 4       \        R\        P                  P                  ^4      P	                  ^
4      RR/4      pV P                  RVRR7       VR,          pV P                  RR4      p\         P4                  ! W74       R
#   + '       g   i     EL; i  + '       g   i     EL; i  + '       g   i     ELD; i  + '       g   i     EL; i)!   ABCDz
2000-01-01r#   )periodsfreq)columnsr$   zNo object named df in the filer   r   r$   Nz%'column [foo] not found in the table'fooz:select_column() got an unexpected keyword argument 'where'zindex>5)wherezScolumn [values_block_0] can not be extracted individually; it is not data indexablevalues_block_0stringdf2)data_columns:      Ndf3)start:r.   NNr%   :Nr.   N)r<   r&   r"   df4T)
   r9   )r   nprandomdefault_rngstandard_normalr   listr
   r   r   r   select_columnappendreescape	TypeErrortmassert_almost_equalvaluesr   r$   
isinstance
ValueErrorcopynanlocassert_series_equal)temp_hdfstorer   msgresultr7   r;   r=   expecteds   &       r   test_read_columnrW   A   s`   	
		a 009d6l#r<
B 
x'G	H	H##D'2 
I r"			"IJ
 
 	##D%0

 ))P
QC	y	,	,##D')#E 
- ((w7F6==&*:*A*ABff%%%% ))	#C 
z	-	-##D*:; 
. '')CCM8*=((9F6==#h-*>*>? '')CCM(*CGGCIIcNH$%8*=((9F6==#h-*>*>? (((BF6==#h-*>*>r*BC(((CF6==#h-*>*>rs*CD((q(AF6==#h-*>*>r*BC((r(BF6==#h-*>*>s*CD(((KF6==#h-*>*>q*DE(((KF6==#h-*>*>r!*DE S"))//2BB2FUS
TC$73xH((4F6,E 
I	H	H

 
 
 
-	,	, 
.	-	-s0   =U "U47V7V U1	4V	V	V-	c                     \        V ! R RR4      RR7      ;_uu_ 4       pVR,          pRRR4       \        X\        4      '       g   Q hR#   + '       g   i     L*; i)iodatazlegacy_hdf/pytables_native.h5r*   modezdetector/readoutN)r   rM   r   )datapathr+   d2s   &  r   test_pytables_native_readr_      sQ    	v>?c
 
	%&
 b)$$$$	
 
s   
A

A	z#native2 read fails oddly on windows)reasonc                     \        V ! R RRR4      RR7      ;_uu_ 4       p\        V4       VR,          pRRR4       \        X\        4      '       g   Q hR#   + '       g   i     L*; i)rY   rZ   
legacy_hdfzpytables_native2.h5r*   r[   detectorN)r   strrM   r   )r]   r+   d1s   &  r   test_pytables_native2_readrf      sY    	v|-BC#
 
	E
:	

 b)$$$$
 
s   AA&	c                    \        \        P                  P                  ^4      P                  R4      \	        R4      \	        R4      R7      pRVP
                  n        VP                  RRR7      pVP                  V RR	R
7       \        V R4      p\        V RR7      ;_uu_ 4       p\        VR4      p\        P                  ! W54       VP                  '       g   Q h RRR4       R#   + '       g   i     R# ; i)r.   abcdABCDEr$   r2   lettersETkeysrF   r   wr   r\   r*   r[   Nr9      )r   r@   rA   rB   rD   r$   name	set_indexr   r   r   rJ   assert_frame_equalis_open)r   using_infer_stringr   directr+   indirects   &&    r   test_read_hdf_open_storerz      s     

		a ''/6lW
B
 BHHM	3t	,BIIl3I/lD)F	,S	)	)UE4(
f/}}}} 
*	)	)	)s   &7C((C9	c                 F   \        \        P                  P                  ^4      P                  R4      . R	O\	        R4      R7      pVP                  V RRRR7       \        V R4      pVP                  P                  P                  e   Q h\        P                  ! W4       R# )
r.   ri   rj   r   ro   tabler   r\   formatNrq   )r      r.      )r   r@   rA   rB   rD   r   r   r$   _databaserJ   ru   )r   r   r7   s   &  r   test_read_hdf_index_not_viewr      s     

		a ''/W
B IIl3wI?
<
&C99??'''""    c                 F   \        \        P                  P                  ^4      P                  R4      \	        R4      \	        R4      R7      pRVP
                  n        VP                  RRR7      pVP                  V RR	R
R7       \        V R4      p\        V RRR7      p\        VP                  4      ;_uu_ 4        \        V\        4      '       g   Q h\        VP                  4       4      pRRR4       \         P"                  ! VX4       R#   + '       g   i     L); i)r.   rh   ri   rj   rk   rl   Trm   r   ro   tr}   )iteratorNrq   )r   r@   rA   rB   rD   r$   rs   rt   r   r   r   r+   rM   r   next__iter__rJ   ru   )r   r   rx   r   ry   s   &    r   test_read_hdf_iteratorr      s    	
		a ''/6lW
B
 BHHM	3t	,BIIl3sI;lD)FdT:H		 	 (M2222))+, 
! &(+ 
!	 s   =2DD 	c                    \        \        P                  P                  ^4      P                  R4      \	        R4      \	        R4      R7      pVP                  V RRR7       \        V 4      p\        P                  ! W4       VP                  V RRR7       Rp\        P                  ! \        VR	7      ;_uu_ 4        \        V 4       R
R
R
4       R
#   + '       g   i     R
# ; i)r.   rh   ri   rj   r   r   rp   r7   ?key must be provided when HDF5 file contains multiple datasets.r   Nrq   )r   r@   rA   rB   rD   r   r   rJ   ru   r   r   rN   r   r   rereadrT   s   &   r   test_read_nokeyr      s    	
		a ''/6lW
B IIl3I/l#F"%IIlCI0
KC	z	-	- 
.	-	-	-s   <CC#	c           
         \        R \        ^4      R\        \        R4      RR7      /4      pVP	                  V RRRR7       \        V 4      p\        P                  ! W4       VP	                  V R	RRR7       R
p\        P                  ! \        VR7      ;_uu_ 4        \        V 4       RRR4       R#   + '       g   i     R# ; i)icabacdcategorydtyper   r   r|   r}   r7   r   r   N)r   r   r   rD   r   r   rJ   ru   r   r   rN   r   s   &   r   test_read_nokey_tabler      s    	Cq3tG}J(OP	QBIIl3wI?l#F"%IIlCI@
KC	z	-	- 
.	-	-	-s   B44C	c                     \        V 4      pVP                  4        \        P                  ! R 4      p\        P
                  ! \        VR7      ;_uu_ 4        \        V 4       RRR4       R#   + '       g   i     R# ; i)z]Dataset(s) incompatible with Pandas data types, not table, or no datasets found in HDF5 file.r   N)r   closerG   rH   r   r   rN   r   )r   r+   rT   s   &  r   test_read_nokey_emptyr      sR    \"E	KKM
))	'C 
z	-	- 
.	-	-	-s   A,,A=	c                    \        \        P                  P                  ^4      P                  R	4      \	        R4      \	        R4      R7      pVP                  V RRR7       \        V RR7      p\        P                  ! W4       R# )
r.   rh   ri   rj   r   r   rp   r   Nrq   )	r   r@   rA   rB   rD   r   r   rJ   ru   )r   rV   actuals   &  r   test_read_from_pathlib_pathr     se    
		a ''/6lWH OOLdO5l-F(+r   r~   fixedr|   c                     \        \        ^
4      \        P                  R7      pVP	                  V RVR7       \        V RRR7      p\        P                  ! W24       R# )r>   r   rZ   r   r~   r*   rp   N)r   r   r@   float64r   r   rJ   rR   )r   r~   seriesrU   s   &&  r   test_read_hdf_series_mode_rr     sF    
 E"IRZZ0F
MM,F6M:lS9F6*r   c                    \        R . RO/4      pVP                  V RRR7       \        P                  ! RR4      ;_uu_ 4        \	        V RRR7      pRRR4       \        R . RO/\        P
                  ! \        P                  R	7      \        R .\        P
                  ! \        P                  R	7      R
7      R7      p\        P                  ! XV4       R#   + '       g   i     L; i)r   NrZ   r|   r   zfuture.infer_stringTr*   rp   )na_valuer   )r   r2   )r   r   N)r   r   pdoption_contextr   StringDtyper@   rP   r   rJ   ru   )r   r   rU   rV   s   &   r   test_read_infer_stringr     s    	C)*	+BIIlwI7			0$	7	7,F= 
8	nnbff-se2>>266#BCH
 &(+ 
8	7s   CC'	c                     \        R R.RR7      pV P                  RV4       V P                  R4      p\        P                  ! W4       R# )z
2001-01-01z
2002-02-02zdatetime64[s]r   df_sN)r   putgetrJ   ru   )rS   r   df_fromstores   &  r   $test_hdfstore_read_datetime64_unit_sr   ,  sA    lL1IDfd# $$V,L$-r   ))
contextlibr   rG   numpyr@   r   pandas.compatr   pandasr   r   r   r   r   r	   rJ   r
   r   pandas.io.pytablesr   mark
single_cpu
pytestmarkr    r(   r,   rW   r_   skipifrf   rz   r   r   r   r   r   r   parametrizer   r   r    r   r   <module>r      s     	   -    -kk$$%

&
&L-^% ')2WX% Y%&#",$(, GW#56+ 7+,.r   