+
    xȇi2                        ^ 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Ht ^ RIHt ]P(                  P*                  .tR tR tR tR tR	 tR
 tR t]P<                  R 4       tR t R t!R t"R t#]P(                  PI                  RRR.4      ]P(                  PI                  R]
! ]%! ^
4       U u. uF  p ]&! V 4      NK  	  up 4      ]
! ]PN                  ! ^
](R7      4      ]
! ]PN                  ! ^
4      4      ]! R^
R7      ]PR                  ! R^
R7      .4      R 4       4       t*R t+R t,R t-R t.]P(                  PI                  RRR.4      R 4       t/R# u up i )    N)	Timestamp)	DataFrameHDFStoreIndex
MultiIndexSeries_testingconcat
date_range)_test_decoratorsc                     \        R ^^./4      pV P                  RVRR7       V P                  RVRR7       V P                  R4      P                  R8X  g   Q hV P                  R4      P                  R8X  g   Q hR# )AafixedformatbtableN)r   put
get_storerformat_type)temp_hdfstoredfs   & q/Users/max/.openclaw/workspace/postharvest/venv/lib/python3.14/site-packages/pandas/tests/io/pytables/test_put.pytest_format_typer      s|    	C!Q=	!Bc2g.c2g.##C(44???##C(44???    c                     R p\         P                  ! \        VR7      ;_uu_ 4        \        V RR7       RRR4       R#   + '       g   i     R# ; i)z-format is not a defined argument for HDFStorematchr   r   N)pytestraises
ValueErrorr   )temp_h5_pathmsgs   & r    test_format_kwarg_in_constructorr%   !   s3     :C	z	-	-g. 
.	-	-	-s	   ?A	c                    \        R \        P                  ! ^x4      P                  R4      ,          \	        \        R4      4      \	        \        ^4       Uu. uF  pRV 2NK
  	  up4      R7      p\        P                  ! RR4      ;_uu_ 4        V P                  RV4       V P                  R4      P                  '       d   Q hRp\        P                  ! \        VR7      ;_uu_ 4        V P                  R	V4       R
R
R
4       R
R
R
4       \        P                  ! RR4      ;_uu_ 4        V P!                  R4       V P                  RV4       V P                  R4      P                  '       g   Q hV P                  R	V4       V P                  R4      P                  '       g   Q h R
R
R
4       R
# u upi   + '       g   i     L; i  + '       g   i     L; i  + '       g   i     R
# ; i)皙?ABCDi-columnsindexio.hdf.default_formatr   r   Can only append to Tablesr   df2Nr         )r   nparangereshaper   listrangepdoption_contextr   r   is_tabler    r!   r"   appendremove)r   ir   r$   s   &   r   test_api_default_formatr>   *   sp   	biin$$W--d6l#uRy1y!r!Xy12
B 
		2G	<	<$# ++D1:::::)]]:S11  + 2 
= 
		2G	<	<T"$#''-66666UB'''-66666 
=	< 2 21 
=	< 
=	<	<s>   F4AG+F9	>G-A9G'G9G	GG	G0	c                    \        R \        P                  ! ^x4      P                  R4      ,          \	        \        R4      4      \	        \        ^4       Uu. uF  pRV 2NK
  	  up4      R7      p\        P                  ! RR4      ;_uu_ 4        VP                  V RR7       \        V 4      ;_uu_ 4       pVP                  R4      P                  '       d   Q h RRR4       R	p\        P                  ! \        VR
7      ;_uu_ 4        VP                  V RRR7       RRR4       RRR4       \        P                  ! RR4      ;_uu_ 4        VP                  V RR7       \        V 4      ;_uu_ 4       pVP                  R4      P                  '       g   Q h RRR4       VP                  V RRR7       \        V 4      ;_uu_ 4       pVP                  R4      P                  '       g   Q h RRR4       RRR4       R# u upi   + '       g   i     EL2; i  + '       g   i     EL; i  + '       g   i     EL; i  + '       g   i     L; i  + '       g   i     Ln; i  + '       g   i     R# ; i)r'   r(   r)   r*   r-   r   r   )keyNr.   r   r/   T)r@   r;   r   df3df4r0   )r   r3   r4   r5   r   r6   r7   r8   r9   to_hdfr   r   r:   r    r!   r"   )r#   r=   r   storer$   s   &    r   test_api_default_format_pathrE   C   s   	biin$$W--d6l#uRy1y!r!Xy12
B 
		2G	<	<
		,D	)l##u''-666666 $)]]:S11IIldI; 2 
= 
		2G	<	<
		,E	*l##u##E*33333 $
		,E$	7l##u##E*33333 $ 
=	< 2
 $## 211 
=	<	< $# $# 
=	<	<s~   G?'H,6$H	.H,	H	H,'I&4$I 	/I&$I	-I&H	H,H)#	H,,H=	 II&I#I&&I7	c           
      x   T p\        \        P                  ! ^
\        P                  R7      \	        R^
R7      R7      p\        \        P                  P                  ^4      P                  R4      \        \        R4      4      \	        R^RR7      R	7      pW!R
&   VR,          VR&   VR,          VR&   VR,          VR&   VR,          VR&   VP                  RVR,          RR7       Rp\        P                  ! \        VR7      ;_uu_ 4        VP                  RVR,          RR7       RRR4       \        P                  ! \        VR7      ;_uu_ 4        VP                  RVR,          RR7       RRR4       \        P                  ! \        VR7      ;_uu_ 4        VP                  RVR,          RR7       RRR4       VP                  RVR,          RRR7       \        P                   ! VR,          VR,          4       R#   + '       g   i     L; i  + '       g   i     L; i  + '       g   i     Ly; i)
   dtype
2020-01-01periodsr,   r(   
2000-01-01BrL   freqr*   r   :NrG   Nr   zfoo/bar/bahfooz/foocr   r   r.   r   :rG   NNT)r;   NfF)r   r;   )   r2   )r   r3   r4   float64r   r   randomdefault_rngstandard_normalr   r6   r   r    r!   r"   tmassert_frame_equal)r   rD   tsr   r$   s   &    r   test_putr]   [   s   E	
		"BJJ'z,PR/S
B 

		a 009d6l#r<
B
 #JCE#Jc7E-c7E%LsGE&M	IIc2c77I+ &C	z	-	-		#r#wt	, 
.
 
z	-	-		#r#wt	, 
. 
z	-	-		#r#wt	, 
. 
IIc2c775I9"S'5:. 
.	-
 
.	- 
.	-s$   HHH)H	H&	)H9	c                    T p\        \        ^4       Uu. uF  pRV 2NK
  	  up4      p\        \        P                  ! ^4      VR7      p\        RVRV/4      pWAR&   \        P                  ! VR,          V4       WQR&   \        P                  ! VR,          V4       \        R.\        ^4       Uu. uF  pRV 2NK
  	  up,           4      p\        \        P                  ! ^4      VR7      p\        RVRV/4      pWAR&   \        P                  ! VR,          V4       WQR&   \        P                  ! VR,          V4       R# u upi u upi )	rU   zI am a very long string index: rM   r   rO   r   r   $abcdefghijklmnopqrstuvwxyz1234567890N)	r   r7   r   r3   r4   r   rZ   assert_series_equalr[   )r   rD   r=   r,   sr   s   &     r   test_put_string_indexrb      s*   E%)L)Q4QC8)LMEryy}E*A	CC#	$B#J5:q)#J%*b) 	/0:?)
D)Q,QC0)
D	EE 	ryy}E*A	CC#	$B#J5:q)#J%*b)+ M Es   E2E
c           
         \        \        P                  P                  ^4      P	                  R4      \        \        R4      4      \        R^
RR7      R7      pV P                  RVRRR	7       \        P                  ! V R,          V4       R
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)   r(   rN   rO   rP   r*   rS   r   zlibr   complib0Compression not supported on Fixed format storesr   r   r   NrG   r2   )r   r3   rW   rX   rY   r   r6   r   r   rZ   r[   r    r!   r"   r   r   r$   s   &  r   test_put_compressionrk      s    	
		a 009d6l#r<
B c2gv>-,b1 =C	z	-	-#r'6B 
.	-	-	-s   2CC#	c           
         \        \        P                  P                  ^4      P	                  R4      \        \        R4      4      \        R^
RR7      R7      pRp\        P                  ! \        VR7      ;_uu_ 4        V P                  RVR	R
R7       RRR4       V P                  RVRR
R7       \        P                  ! V R,          V4       R#   + '       g   i     LE; i)rd   r(   rN   rO   rP   r*   rh   r   r   r   bloscrf   NrS   r   ri   )r   r3   rW   rX   rY   r   r6   r   r    r!   r"   r   rZ   r[   rj   s   &  r   test_put_compression_bloscrn      s    	
		a 009d6l#r<
B =C	z	-	-#r'7C 
. c2gw?-,b1	 
.	-s   ?CC"	c                     \        ^\        R4      P                  R4      .,          4      pV P                  RV4       VP	                  4       pV P                  R4      p\        P                  ! WT4       R# )   20010102nsserN)r   r   as_unitr   copygetrZ   r`   )r   performance_warningusing_infer_stringrs   expectedresults   &&&   r   test_put_datetime_serr{      s]    
i
+33D9::
;CeS!xxzHu%F6,r   c           
         \        \        P                  P                  ^4      P	                  R4      \        \        R4      4      \        R^
RR7      R7      pRVR&   RVR	&   VR
,          ^ 8  VR&   VR,          ^ 8  VR&   RVR&   ^VR&   ^VR&   \        R4      P                  R4      VR&   \        R4      P                  R4      VR&   \        R4      P                  R4      VR&   \        R4      P                  R4      VR&   \        P                  VP                  VP                  R,          R.3&   VP                  4       pV'       d   RMTp\        P                  ! V4      ;_uu_ 4        V P!                  RV4       RRR4       V P#                  R4      p\        P$                  ! WS4       R#   + '       g   i     L9; i)rd   r(   rN   rO   rP   r*   rR   obj1barobj2r   bool1bool2Tbool3int1int2rq   rr   
timestamp120010103
timestamp2	datetime1	datetime2:rp      NNr   ri   )r   r3   rW   rX   rY   r   r6   r   r   rt   nanlocr,   _consolidaterZ   assert_produces_warningr   rv   r[   )r   rw   rx   r   warningry   s   &&&   r   test_put_mixed_typer      s~   	
		a 009d6l#r<
B
 BvJBvJS'A+BwKS'A+BwKBwKBvJBvJ ,44T:B| ,44T:B|
+33D9B{O
+33D9B{O&(ffBFF288C=6("#		B(d.AG		#	#G	,	,$# 
-   &H('	 
-	,s   /F33G	c                 n   \         P                  ! V!  p\        R \         P                  ! R\         P                  R.VR7      /4      pV P                  RV4       VP                  \        P                  J d   RMRpVP                  V4      pV P                  R4      p\        P                  ! Wv4       R# )r   xyrH   r   strstringN)r8   StringDtyper   arrayNAr   na_valuer3   r   astyperv   rZ   r[   )r   rw   string_dtype_argumentsrI   r   expected_dtypery   rz   s   &&&     r   test_put_str_framer      s    NN23E	C3s"35AB	CBdB#nn6UHNyy(Ht$F&+r   c                 B   \         P                  ! V!  p\        R \         P                  R.VR7      pV P	                  RV4       VP
                  \        P                  J d   RMRpVP                  V4      pV P                  R4      p\        P                  ! Wv4       R# )r   r   rH   rs   r   r   N)r8   r   r   r   r   r   r3   r   r   rv   rZ   r`   )r   rw   r   rI   rs   r   ry   rz   s   &&&     r   test_put_str_seriesr      sz    NN23E
#ruuc"%
0CeS!#nn6UHNzz.)Hu%F6,r   r   r   r   r,   rH   rJ   rK   c                     \        \        P                  P                  ^4      P	                  R4      \        R4      VR7      pV P                  RW1R7       \        P                  ! W0R,          4       R# )rd   ABr*   r   r   N)rG   rd   )	r   r3   rW   rX   rY   r6   r   rZ   r[   )r   r   r,   r   s   &&& r   test_store_index_typesr      s]     

		a 009T

B
 dB."D12r   c           	      r   \         P                  ! . RORR.R7      p\        \        P                  ! ^4      P                  ^^4      VR7      pVP                  VP                  P                  4       4      pV P                  RV4       \        P                  ! V R,          VRRR7       V P                  RVR	R
7       \        P                  ! V R,          VR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       \        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     Lj; i  + '       g   i     R# ; i)r   firstsecondnamesr+   r   Tcheck_index_typecheck_column_typedf1r   r   z<cannot use a multi-index on axis [1] with data_columns ['A']r   r/   )r   data_columnsNz;cannot use a multi-index on axis [1] with data_columns TruerA   )r   r   )r   r   )rO   r   )rO   r   )r   from_tuplesr   r3   r4   r5   set_axisr,   to_numpyr   rZ   r[   reescaper    r!   r"   )r   rx   r,   r   ry   r$   s   &&    r   test_column_multiindexr     sQ    ""8(@SE 
299R=((A.	>B{{288,,./HdBdXPT eR0ehQU ))R
SC	z	-	-%G3%H 
.
))Q
RC	z	-	-%G$G 
.	- 
.	- 
.	-	-s   F2F%F"	%F6	c                 8   \         P                  ! . RORR.R7      p\        \        P                  ! ^4      P                  ^^4      VR7      pV P                  RV4       V P                  RV4       \        P                  ! V R,          \        W334      4       R# )r   r   r   r   r   r/   Nr   )
r   r   r   r3   r4   r5   r;   rZ   r[   r
   )r   rx   r,   r   s   &&  r   test_column_multiindex_existingr   )  s}     ""8(@SE 
299R=((A.	>B##-.x0@Ar   c                 L   \        \        P                  ! ^4      P                  ^^4      \	        \        R4      RR7      R7      pVP                  VP                  P                  4       4      pV P                  RVRR7       \        P                  ! V R,          VRRR	7       R
# )   r(   rR   )namer   r   r   r   Tr   N)r   r3   r4   r5   r   r6   r   r,   r   r   rZ   r[   )r   rx   r   ry   s   &&  r   %test_column_multiindex_non_index_axesr   6  s|    	299R=((A.d6lQV8W	XB{{288,,./HeR0ehQUr   c                    R
R lp\        \        P                  ! R4      RR.V! 4       R7      pV P                  RV4       \        P
                  ! V P                  R4      V4       V P                  R4       \        \        P                  ! R4      RR.V! . RO4      R7      pV P                  RV4       \        P
                  ! V P                  R4      V4       \        \        P                  ! ^4      V! . RO4      R7      pV P                  RV4       \        \        P                  ! ^4      V! . RO4      R7      p\        P                  ! V P                  R4      V4       V P                  R4       \        \        P                  ! R4      RR.V! . RO4      R7      pRp\        P                  ! \        VR	7      ;_uu_ 4        V P                  RV4       R R R 4       V P                  R4       \        \        P                  ! R4      RR.V! . RO4      R7      p\        P                  ! \        VR	7      ;_uu_ 4        V P                  RV4       R R R 4       V P                  R4       \        \        P                  ! R4      RR.V! . RO4      R7      pV P                  RV4       \        P
                  ! V P                  R4      V4       R #   + '       g   i     EL; i  + '       g   i     L; i)Nc                 x    \        R R4      p\        P                  ! V\        ^4      \        ^4      .V R7      pV# )z
2013-12-01z
2013-12-02r   )r   r   from_productr7   )r   dtimis   &  r   
make_index)test_store_multiindex.<locals>.make_indexD  s4    |4$$c58U1X%>eL	r   r   r   r*   r   rM   rs   zBduplicate names/columns in the multi-index when storing as a tabler   )N)r   rd   )dateNN)r   level_1level_2)r   r   t)r   r   r   )r   ra   r   )r   r3   zerosr;   rZ   r[   selectr<   r   r`   r    r!   r"   )r   r   r   rs   xpr$   s   &     r   test_store_multiindexr   @  sO    
288G$sCj
	MBr"-..t4b9 	
c
-.
B
 r"-..t4b9 "Z0D%E
FC$	J/M$N	OB=//6; 	
c
+,
B
 OC	z	-	-T2& 
. 	
c
12
B
 
z	-	-T2& 
. 	
c
+,
B
 r"-..t4b9+ 
.	-	- 
.	-s   	KK+K(	+K;	c           	      *   \        \        P                  P                  ^4      P	                  R	4      \
        P                  ! RR^R7      R7      pVP                  V RRVR7       \
        P                  ! V R4      p\        P                  ! W#4       R# )
rd   20220101M)rQ   rL   rM   r   w)r@   moder   N)      )r   r3   rW   rX   rY   r8   period_rangerC   read_hdfrZ   r[   )r#   r   r   ry   s   &&  r   test_store_periodindexr   ~  so     

		a 008oojsA>
B
 IIl3vI>{{<.H"'r   )0r   numpyr3   r    pandas._libs.tslibsr   pandasr8   r   r   r   r   r   r	   rZ   r
   r   pandas.utilr   tdmark
single_cpu
pytestmarkr   r%   r>   rE   r]   rb   rk   skip_if_windowsrn   r{   r   r   r   parametrizer7   r   r4   floatr   r   r   r   r   r   r   )r=   s   0r   <module>r      sx   	   ) 	 	 	 /kk$$%
@/7240!/H*4C  2 2-(8	,	- GW#56uRy)y!s1vy)*bii%()biim<,
b1		3	 7	3H8
B;:| GW#56
( 7
(K *s   :E