+
    xȇi                        ^ RI t ^ RIHt ^ RIt^ RIt^ RIt^ RIt^ RIH	t	H
t
HtHtHtHtHt ^ RIHtHt ]P&                  P(                  .tR tR tR tR tR	 tR
 tR tR tR t]P&                  P?                  R]! RR^RRR7      ]	! ] ! R4      4      .4      R 4       t!R t"R t#R t$]P&                  P?                  RRR. RR.4      R 4       t%R# )    N)BytesIO)CategoricalIndex	DataFrameHDFStoreIndex
MultiIndex
date_rangeread_hdf)Term_maybe_adjust_namec                    \        R \        P                  ! ^x4      P                  R4      ,          \	        \        R4      \        R7      \	        \        ^4       Uu. uF  pRV 2NK
  	  up\        R7      R7      pV P                  RV4       Rp\        P                  ! \        VR7      ;_uu_ 4        V P                  RR.R	7       R
R
R
4       Rp\        P                  ! \        VR7      ;_uu_ 4        V P                  RR.R7       R
R
R
4       R
# u upi   + '       g   i     LZ; i  + '       g   i     R
# ; i)皙?ABCDdtypei-columnsindexdfzqcannot pass a column specification when reading a Fixed format store. this store must be selected in its entiretymatchA)r   Nzucannot pass a where specification when reading from a Fixed format store. this store must be selected in its entiretyz	columns=Awhere      )r   nparangereshaper   listobjectrangeputpytestraises	TypeErrorselecttemp_hdfstoreir   msgs   &   t/Users/max/.openclaw/workspace/postharvest/venv/lib/python3.14/site-packages/pandas/tests/io/pytables/test_errors.pytest_pass_spec_to_storerr/      s    	biin$$W--d6l&1uRy1y!r!Xy1@
B dB	=  
y	,	,TC51 
-	D  
y	,	,T+7 
-	, 2 
-	, 
-	,	,s   D4D7D.D+	.D?	c           	      ^   \        R . RO/4      p\        R . RO/\        R^RR7      R7      pV P                  RVRR7       \        P                  ! R4      p\
        P                  ! \        VR	7      ;_uu_ 4        V P                  RVRR
R7       RRR4       R#   + '       g   i     R# ; i)az1/1/2000nsperiodsunit)r   frametableformatz3incompatible kind in col [integer - datetime64[ns]]r   T)r9   appendN)         )r         )r   r	   r%   reescaper&   r'   r(   )r+   df1df2r-   s   &   r.   $test_table_index_incompatible_dtypesrD   1   s    
S)$
%C
	i
:qt LC gs73
))I
JC	y	,	,'3wtD 
-	,	,	,s   ;BB,	c                 :   R \         P                  ! R^^4      3.pV F  w  r#\        R\        P                  ! ^x4      P                  R4      ,          \        \        R4      \        R7      \        \        ^4       Uu. uF  pRV 2NK
  	  up\        R7      R7      pW5V&   \        P                  ! RV R24      p\        P                  ! \        VR	7      ;_uu_ 4        V P                  R
V 2V4       RRR4       K  	  R# u upi   + '       g   i     K  ; i)date  r   r   r   r   r   [z&] is not implemented as a table columnr   df1_Nr   )datetimerF   r   r   r    r!   r   r"   r#   r$   r@   rA   r&   r'   r(   r:   )r+   dtypesnfr,   r   r-   s   &      r.   'test_unimplemented_dtypes_table_columnsrN   =   s    x}}T1a012F "))C.((11$v,f55959a2aS95VD

 1ii!A3DEF]]9C00  4sR0 10  6 100s   >D D		Dc                    \        R \        P                  ! ^x4      P                  R4      ,          \	        \        R4      \        R7      \	        \        ^4       Uu. uF  pRV 2NK
  	  up\        R7      R7      pRVR&   RVR&   \        P                  ! R	^^4      VR
&   VP                  4       pRP                  \        P                  ! R4      \        P                  ! R4      .4      p\        P                  ! \         VR7      ;_uu_ 4        V P#                  RV4       RRR4       R# u upi   + '       g   i     R# ; i)r   r   r   r   r   fooobj1barobj2rG   	datetime1|zjCannot serialize the column [datetime1]
because its data contents are not [string] but [date] object dtypez+[date] is not implemented as a table columnr   df_unimplementedNr   )r   r   r    r!   r   r"   r#   r$   rJ   rF   _consolidatejoinr@   rA   r&   r'   r(   r:   r*   s   &   r.   (test_unimplemented_dtypes_table_columns2rY   M   s   	biin$$W--d6l&1uRy1y!r!Xy1@
B
 BvJBvJmmD!Q/B{O		B ((IID IICD	
C 
y	,	,/4 
-	,# 2" 
-	,	,s   D-D22E	c                 t   \        \        P                  P                  ^4      P	                  R4      \        \        R4      \        R7      \        R^
RRR7      R7      pRVR	&   R
VP                  VP                  R,          R	3&   V P                  RVRR7       \        P                  ! R4      p\        P                  ! \         VR7      ;_uu_ 4        \#        4        RRR4       \        P                  ! R4      p\        P                  ! \$        VR7      ;_uu_ 4        V P'                  RR4       RRR4       Rp\        P                  ! \(        VR7      ;_uu_ 4        V P'                  RR4       RRR4       R#   + '       g   i     L; i  + '       g   i     Lf; i  + '       g   i     R# ; i)r<   r   r   z
2000-01-01Br2   )r4   freqr5   r   rP   stringrR   :r   r   Nr   r7   r8   z:__init__() missing 1 required positional argument: 'where'r   NzWcannot process expression [df.index[3]], [2000-01-06 00:00:00] is not a valid conditionzdf.index[3]zinvalid syntaxzindex>
   r   )r   r   randomdefault_rngstandard_normalr   r"   r#   r	   locr   r%   r@   rA   r&   r'   r(   r   
ValueErrorr)   SyntaxError)r+   r   r-   s   &  r.   test_invalid_termsrf   g   s7   	
		a 009d6l&1r$G
B
 BxL&+BFF288C=("#dBw/ ))P
QC	y	,	, 
- ))	9C 
z	-	-T=1 
. C	{#	.	.T8, 
/	. 
-	, 
.	- 
/	.	.s$   F "F#F& F	F#	&F7	c           
         \        \        P                  P                  ^4      P	                  R4      \        R4      \        R^
RR7      R7      pVP                  V RRRR	7       \        V RR
R7       \        V RRR7       R# )r<   r   20130101r2   r3   r   dfqr7   T)keyr9   data_columnsz0index>Timestamp('20130104') & columns=['A', 'B']r   
A>0 or C>0Nr^   )	r   r   r`   ra   rb   r"   r	   to_hdfr
   )temp_h5_pathri   s   & r.   test_invalid_terms_from_docsro      sr    

		a 009VRd;C
 JJ|wTJJ e#U \55    c           
      n   \        \        P                  P                  ^4      P	                  R4      \        R4      \        R^
RR7      R7      pVP                  V RRR7       R	p\        P                  ! \        VR
7      ;_uu_ 4        \        V RRR7       RRR4       R#   + '       g   i     R# ; i)r<   r   rh   r2   r3   r   ri   r7   )rj   r9   a  The passed where expression: A>0 or C>0\n\s*contains an invalid variable reference\n\s*all of the variable references must be a reference to\n\s*an axis \(e.g. 'index' or 'columns'\), or a data_column\n\s*The currently defined references are: index,columns\nr   rl   r   Nr^   )r   r   r`   ra   rb   r"   r	   rm   r&   r'   rd   r
   )rn   ri   r-   s   &  r.   test_invalid_terms_referencerr      s    

		a 009VRd;C
 JJ|wJ7	A  
z	-	-uL9 
.	-	-	-s   
B##B4	c                 V   \        \        P                  P                  ^4      P	                  R4      4      p\        R\        P                  P                  ^4      P	                  ^
4      /4      p\        R\        P                  P                  ^4      P	                  ^
4      /4      p\        R	\        P                  P                  ^4      P	                  ^
4      /4      p\        R^\
        3\        P                  P                  ^4      P	                  ^
4      /4      pRpV P                  Wa4       W#WE3 FW  p\        P                  ! R4      p\        P                  ! \        VR7      ;_uu_ 4        V P                  Wg4       RRR4       KY  	  R#   + '       g   i     Kn  ; i)
r<   r1   1df_diff_valerrorz?cannot match existing table structure for [0] on appending datar   N)r_   r;   r;   r<   )rt   r<   )r   r   r`   ra   rb   r#   r:   r@   rA   r&   r'   rd   )	r+   r   rC   df3df4df5namedr-   s	   &        r.   7test_append_with_diff_col_name_types_raises_value_errorr|      s:   	299((+;;GD	EB
S"))//2BB2FG
HC
VRYY2215EEbIJ
KC
Xryy44Q7GGKL
MC
c1f%ryy'<'<Q'?'O'OPR'ST
UCD"!iiM
 ]]:S11  ) 21	 " 211s   7FF(c                 L   \        \        P                  P                  ^4      P                  R
4      \	        R4      \	        R4      R7      pRp\
        P                  ! \        VR7      ;_uu_ 4        VP                  V RRR7       R	R	R	4       R	#   + '       g   i     R	# ; i)r<   abcdABCDEr   r   z)complib only supports \[.*\] compression.r   r   foolib)rj   complibNr   r>   )	r   r   r`   ra   r"   r&   r'   rd   rm   )rn   r   r-   s   &  r.   test_invalid_complibr      sp    	
		a ''/6lW
B
 7C	z	-	-
		,D(	; 
.	-	-	-s   3BB#	idx2019DUTCr2   )r\   r4   tzr5   abcc                     \         P                  ! W .4      p\        ^ VR.R7      p\        P                  ! \
        RR7      ;_uu_ 4        VP                  VRR7       RRR4       R#   + '       g   i     R# ; i)r   r1   r   zSaving a MultiIndexr   r   rj   N)r   from_arraysr   r&   r'   NotImplementedErrorrm   )r   rn   mir   s   &&  r.   &test_to_hdf_multiindex_extension_dtyper      sY     
		
	+B	1B	.B	*2G	H	H
		,D	) 
I	H	H	Hs   A))A:	c                     V ! R RR4      pRp\         P                  ! \        VR7      ;_uu_ 4        \        V4       RRR4       R#   + '       g   i     R# ; i)iodataz"legacy_hdf/incompatible_dataset.h5z_Dataset\(s\) incompatible with Pandas data types, not table, or no datasets found in HDF5 file.r   N)r&   r'   rd   r
   )datapath	data_pathmessages   &  r.   test_unsuppored_hdf_file_errorr      sE    v'KLI	8 
 
z	1	1 
2	1	1	1s   AA	c                 d   \        \        P                  P                  ^4      P                  R4      \	        R4      \	        R4      R7      pRp\
        P                  ! \        VR7      ;_uu_ 4        \        \        P                  ! 4        R2R4       RRR4       VP                  V R	R
7       \        V RR7      pVP                  4        Rp\
        P                  ! \        VR7      ;_uu_ 4        \        VR	4       RRR4       R#   + '       g   i     L}; i  + '       g   i     R# ; i)r<   r~   r   r   zFile [\S]* does not existr   z.h5rj   Nr   r   r)modez&The HDFStore must be open for reading.r   )r   r   r`   ra   r"   r&   r'   OSErrorr
   uuiduuid4rm   r   close)rn   r   r-   stores   &   r.   test_read_hdf_errorsr      s    	
		a ''/6lW
B 'C	wc	*	*DJJL>%u- 
+ IIlI%\,E	KKM
2C	wc	*	* 
+	* 
+	* 
+	*	*s   3#D4DD	D/	c                      R p \         P                  ! \        V R7      ;_uu_ 4        \        \	        R4      R4       RRR4       R#   + '       g   i     R# ; i)z5Support for generic buffers has not been implemented.r   rp   r   N)r&   r'   r   r
   r   )r-   s    r.   #test_read_hdf_generic_buffer_errorsr      s6    
AC	*#	6	6t$ 
7	6	6	6s   AA	bad_version12123c                     R p\         P                  ! \        VR7      ;_uu_ 4        \        RV R7       RRR4       R#   + '       g   i     R# ; i)z5Version is incorrect, expected sequence of 3 integersr   values_block_0)versionN)r&   r'   rd   r   )r   r-   s   & r.   )test_maybe_adjust_name_bad_version_raisesr      s2    
AC	z	-	-+[A 
.	-	-	-s	   ?A	rv   )r;   )&rJ   r   r   r@   r   numpyr   r&   pandasr   r   r   r   r   r	   r
   pandas.io.pytablesr   r   mark
single_cpu
pytestmarkr/   rD   rN   rY   rf   ro   rr   r|   r   parametrizer"   r   r   r   r   r    rp   r.   <module>r      s      	     
 kk$$%
8,	E1 54-:6 :(*$< 	6Q5tDe%**	(% r4(GHB IBrp   