+
    xȇiG              	       8   ^ RI t ^ RIt^ RIt^ RIt^ RIH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Ht ^ RIHt ]P0                  P2                  .tR tR tR tR	 tR
 tR t R t!R t"R t#R t$]P0                  PK                  R4      R 4       t&R t'R t(]P0                  PK                  R4      R 4       t)R t*]P0                  PW                  RR]PX                  ! R]PZ                  R7      .4      R 4       t.R t/]P0                  PW                  R]P`                  ]Pb                  ]2RR.4      R 4       t3R  t4R! t5]P0                  PW                  RR]PX                  ! R]PZ                  R7      .4      R" 4       t6R*R# lt7R*R$ lt8R% t9R& t:R' t;R( t<R) t=R# )+    N)	Timestamp)is_platform_windows)		DataFrameDatetimeIndexHDFStoreIndexSeries_testingbdate_range
date_rangeread_hdf)_test_decoratorsc                 n  a  V 3R  lp\        \        P                  ! ^
\        P                  R7      \	        R^
R7      R7      p\
        P                  ! W!! RV4      4       \        \        ^
4      R\        ^
4       Uu. uF  pRV 2NK
  	  upR7      p\
        P                  ! W!! R	V4      4       \        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                  ! W!! RV4      4       \        R\        ^4      R\        ^4      /4      pVP                  S RRR7       \        S RR.R7      p\
        P                  ! WDP                  ^8  ,          V4       R# u upi u upi )c                 F   < VP                   ! S3R V /VB  \        SV 4      # key)to_hdfr   )r   objkwargstemp_h5_paths   &&,x/Users/max/.openclaw/workspace/postharvest/venv/lib/python3.14/site-packages/pandas/tests/io/pytables/test_round_trip.py	roundtrip'test_conv_read_write.<locals>.roundtrip   s&    

<3S3F3c**    dtype
2020-01-01periodsindexseriesfloat64i_r   r!   string_series皙?ABCDi-columnsr!   frameABtableTr   appendzindex>2)whereN      )r	   nparanger#   r   tmassert_series_equalranger   reshaper   listassert_frame_equalr   r   r!   )r   r   oidfresults   f     r   test_conv_read_writerB      s[   + 	
		"BJJ'z,PR/S	A 1i!45uRy	E"I1NIqBqc(I1NOA1i;<biin$$W--d6l#uRy1y!r!Xy12	A
 !Yw23 
Cq3a1	2BIIlI5lGI;?F"XX\*F3 2O 2s   >F-F2c                     R.^
,          p\        R V/VR7      pV P                  RVR .R7       V P                  R4      p\        P                  ! W#4       R# )ar    r@   )data_columnsN2aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa)r   r1   selectr8   r=   )temp_hdfstoredatar@   rA   s   &   r   test_long_stringsrJ   6   sR    :?D	C;d	+Br6!!$'F"%r   c                    T p\        \        ^4      4      pVP                  R,          P                  VRRRR7       VP                  R,          P                  VRRRR7       \        P
                  ! \        VR4      V4       VP                  R,          P                  VRRRR7       VP                  R,          P                  VRRRR7       \        P
                  ! \        VR4      V4       R# )	   N
   Nr@   Tr/   r   r1   formatrN   NNFNr   r:   ilocr   r8   r=   r   r   pathr@   s   &  r   test_apirV   A   s     D	59	BGGCL$tGDGGCL$tGD(4.3 GGCL$uWEGGCL$tGD(4.3r   c                    T p\        \        ^4      4      pVP                  R,          P                  VRRR7       VP                  R,          P                  VRRRR7       \        P
                  ! \        VR4      V4       VP                  R,          P                  VRRRR7       VP                  R,          P                  VRRR7       \        P
                  ! \        VR4      V4       R	# )
rL   rM   r@   Tr0   rQ   r/   rO   FNrR   rT   s   &  r   test_api_appendrX   Q   s    D	59	BGGCL$t4GGCL$tGD(4.3 GGCL$uWEGGCL$t4(4.3r   c                    \        \        ^4      4      pVP                  V RRRR7       \        P                  ! \        V R4      V4       VP                  V RRRR7       \        P                  ! \        V R4      V4       VP                  V RRR7       \        P                  ! \        V R4      V4       VP                  V RR7       \        P                  ! \        V R4      V4       R# )	rL   r@   FfixedrO   fr0   r   N)r   r:   r   r8   r=   r   r   r@   s   & r   
test_api_2r]   _   s    	59	BIIlU7IC(<6;IIlU3I?(<6;IIlUI3(<6;IIlI%(<6;r   c                 $   \        \        ^4      4      pV P                  RVP                  R,          RRR7       V P                  RVP                  R,          RRR7       \        P
                  ! V P                  R4      V4       V P                  R4       V P                  RVP                  R,          RRR7       V P                  RVP                  R,          RRR7       \        P
                  ! V P                  R4      V4       V P                  R4       V P                  RVP                  R,          RRR7       V P                  RVP                  R,          RRR7       \        P
                  ! V P                  R4      V4       V P                  R4       V P                  RVP                  R,          RRR7       V P                  RVP                  R,          RRR7       \        P
                  ! V P                  R4      V4       R# )	rL   r@   rM   Tr/   )r1   rP   rQ   FN)r   r:   r1   rS   r8   r=   rG   remove)rH   r@   s   & r   
test_api_3r`   n   s   	59	Brwws|DIrwws|DI-..t4b9 rwws|E'Jrwws|DI-..t4b9 rwws|E'Jrwws|DI-..t4b9rwws|E'Jrwws|DF-..t4b9r   c                 N   T p\        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Rp\        P                  ! \        VR7      ;_uu_ 4        VP                  VRRRR	7       R
R
R
4       \        P                  ! \        VR7      ;_uu_ 4        VP                  VRRRR	7       R
R
R
4       Rp\        P                  ! \        VR7      ;_uu_ 4        VP                  VRRRR	7       R
R
R
4       \        P                  ! \        VR7      ;_uu_ 4        VP                  VRRRR	7       R
R
R
4       RpRV R2p\        P                  ! \        VR7      ;_uu_ 4        \        VR4       R
R
R
4       R
# u upi   + '       g   i     EL!; i  + '       g   i     L; i  + '       g   i     L; i  + '       g   i     L; i  + '       g   i     R
# ; i)r'   r(   r)   r*   zCan only append to Tablesmatchr@   Tr[   rO   NrZ   z)invalid HDFStore format specified \[foo\]fooF zFile z does not existr3   )r   r6   r7   r;   r   r<   r:   pytestraises
ValueErrorr   	TypeErrorFileNotFoundErrorr   )r   rU   r?   r@   msgs   &    r   test_api_invalidrl      s   D	biin$$W--d6l#uRy1y!r!Xy12
B &C	z	-	-
		$Dc	: 
. 
z	-	-
		$Dg	> 
. 7C	y	,	,
		$De	< 
- 
y	,	,
		$Du	= 
- D$
'C	(	4	4t 
5	4/ 2
 
.	-	- 
.	-
 
-	, 
-	, 
5	4	4sB   GGGG- H *HG	G*	-G=	 H	H$	c                    \        \        P                  ! ^
\        P                  R7      \	        R^
R7      R7      V R&   V P                  R4      pV R,          p\        P                  ! W4       V P                  R4      pV R,          p\        P                  ! W4       \        P                  ! \        RR7      ;_uu_ 4        V P                  R	4       R
R
R
4       R
#   + '       g   i     R
# ; i)rN   r   r   r   r    rD   z/az'No object named b in the file'rb   bN)r	   r6   r7   r#   r   getr8   r9   rf   rg   KeyError)rH   leftrights   &  r   test_getrs      s    
		"BJJ'z,PR/SM# S!D#E4'T"D$E4'	x'H	I	I# 
J	I	I	Is   C  C1	c                     \        \        P                  P                  ^4      P	                  R4      4      p\        V\        P                  V 4       R# )   N)2   d   )r   r6   randomdefault_rngstandard_normal_check_roundtripr8   r=   r\   s   & r   test_put_integerr|      s8    	299((+;;IF	GBR..=r   c                    \        R . R*O/RR7      pV P                  RV4       \        P                  ! VP                  V R,          P                  4       \        R . R*O/RR7      pV P                  RV4       \        P                  ! VP                  V R,          P                  4       \
        P                  ! R4      p\        P                  ! \        VR7      ;_uu_ 4        V P                  RV4       RRR4       \        \        P                  ! ^.^.^..R	R7      R
.R7      pV P                  RV4       \        P                  ! VP                  V R,          P                  4       VP                  P                  ^ ,          R8X  g   Q h\        R+ Uu/ uF=  pV\        \        P                  P                  ^4      P!                  ^4      VR7      bK?  	  up4      pRVR&   RVR&   VR,          P#                  R4      VR&   VR,          ^ 8  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      VR!&   V P                  R"V4       V P)                  R"4      P                  P+                  4       pVP,                   Uu. uF  p\/        V4      NK  	  upVn        V'       d   R#MR$p\        R^R^R^R^R^R^R^V^R%^R&^R'^/R(R)7      p	VP1                  4       pV	P1                  4       p	\        P                  ! Wi4       R#   + '       g   i     EL[; iu upi u upi ),rD   f8r   df_f8i8df_i8zdCannot serialize the column [a] because its data contents are not [float] but [integer] object dtyperb   Nf4r-   r+   df_f4float32r#   int32int64int16int8rd   string      ?float322bool20130101stime_s_1z20130101 00:00:00time_s_2z20130101 00:00:00.000mstime_msz20130102 00:00:00.000000000time_nsdf_mixed_dtypes1strobjectzdatetime64[s]zdatetime64[ms]zdatetime64[ns]count)name   ru      )r   r#   r   r   r   r   )r   r1   r8   r9   dtypesreescaperf   rg   rh   r6   arrayrS   r	   rx   ry   integersastyper   as_unitrG   value_countsr!   r   
sort_index)
rH   using_infer_stringdf1df2rk   crA   r?   	str_dtypeexpecteds
   &&        r   "test_table_values_dtypes_roundtripr      s   
S)$D
1C#&3::}W'='D'DE
S)$D
1C#&3::}W'='D'DE ))	%C
 
z	-	-Wc* 
.
 BHHqcA3_D9C5
IC#&3::}W'='D'DE::??1***  O	
N vbii++A.77:!DDN	
C CMC
O*o,,Y7C
Oi.1$CK
+33C8C
O 34<<SAC
O67??EC	N<=C	N+S1!!"45<<IIKF$*LL1LqCFL1FL+IqqQAQAQqQaa	
 H   F""$H6,a 
.	-	-	
  2s   %M
AMM#
M	z(ignore::pandas.errors.PerformanceWarningc           	         \        \        ^
4      R\        ^
4       Uu. uF  pRV 2NK
  	  upR7      p\        V\        P                  V R7       \        \
        P                  ! ^
\
        P                  R7      \        R^
R7      R7      p\        V\        P                  V R7       \        VP                  \        VP                  4      4      p\        V\        P                  V R7       \        VP                  \        \
        P                  ! VP                  4      4      4      p\        V\        P                  V R	R
7       R# u upi )rN   r#   r$   r%   rU   r   r   r   r    F)rU   check_index_typeN)r	   r:   r{   r8   r9   r6   r7   r#   r   r!   r   valuesasarray)r   r?   r   tsts2ts3s   &     r   test_seriesr      s    uRy	E"I1NIqBqc(I1NOAQ..\B	
		"BJJ'z,PR/S
B R//lC
5?
+CS"00|D
E"**RXX"67
8CR##, 2Os   E	c                    \         P                  P                  ^4      P                  ^
4      p\	        \         P                  P                  ^4      P                  ^
4      VR7      p\        V\        P                  V R7       R# )ru   r    r   N)r6   rx   ry   rz   r	   r{   r8   r9   )r   r!   r   s   &  r   test_float_indexr     sY    II!!!$44R8Eryy$$Q'77;5IAQ..\Br   c                 |   \         P                  ! ^
4      p. ROp\         P                  P                  ^4      P	                  ^4      P                  R4      p\        WCVR7      p\        P                  ! V4      ;_uu_ 4        \        V\        P                  V R7       RRR4       R#   + '       g   i     R# ; i)rN   )r!   r+   r   N))g        r   )       @      @)g      @g      @)r   rN   )r6   r7   rx   ry   rz   r;   r   r8   assert_produces_warningr{   r=   )r   performance_warningcolidxrI   DFs   &&    r   test_tuple_indexr     s}    
))B-C
.C99  #33B7??HD	4C	0B		#	#$7	8	8R22F 
9	8	8	8s   B**B;	c                 D   \         P                  P                  ^4      P                  ^4      pR p\	        V^ R.4      p\        W2V R7       \	        V\        P                  P                  4       ^ .4      p\        W2V R7       \	        VR^ .4      p\        W2V R7       \	        V\        P                  P                  4       R.4      p\        W2V R7       \	        V^ R.4      p\        W2V R7       \	        V\        P                  P                  4       ^ .4      p\        W2V R7       \	        VR^ .4      p\        W2V R7       \	        V\        P                  P                  4       R.4      p\        W2V R7       \	        VRR.4      p\        W2V R7       \	        V^R.4      p\        W2V R7       \	        V^^.4      p\        W2V R7       \        RR	.R
R7      p\	        WR7      p\        W2V R7       VP                  P                  R4      Vn
        \        W2V R7       R# )ru   c                 2    \         P                  ! WR R7      # )T)r   )r8   r9   )lhsrhss   &&r   <lambda>"test_index_types.<locals>.<lambda>)  s    B223dSr   yr   rD   gGz?rn   g{Gz?z
2012-01-01z
2012-01-02M8[ns]r   r    r   N)r6   rx   ry   rz   r	   r{   datetimetodaydater   r!   r   )r   r   funcserdtis   &    r   test_index_typesr   %  s   YY""1%55a8FSD
!S
"CS\2
(++113Q7
8CS\2
#q
"CS\2
(----/5
6CS\2
!S
"CS\2
(++113Q7
8CS\2
#q
"CS\2
(----/5
6CS\2
$
%CS\2
!T
#CS\2
!Q
 CS\2
|4H
EC

#CS\2		!!#&CIS\2r   c                 x   \        R R4      p\        \        P                  P	                  ^4      P                  \        V4      4      VR7      p \        V\        P                  V R7       R#   \         dA    \        4       '       d/   TP                  \        P                  P                  R4      4       h i ; i)z1/1/1940z1/1/1960r    r   z'known failure on some windows platformsN)r   r	   r6   rx   ry   rz   lenr{   r8   r9   OverflowErrorr   applymarkerrf   markxfail)r   requestdrr   s   &&  r   test_timeseries_preepochr   T  s    	Z	,B			%%a(88RA	LBR33,G   !!"KL 	s   A. .AB9compressionFT)marksc                 d   \        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                  VP                  R&   \        P                  VP                  R&   \        V\        P                  WR7       \        V\        P                  WR7       \        \        P                  P                  ^4      P                  R4      \	        \        R4      4      \!        R^
RR7      R7      p\        V\        P                  WR7       \#        V4      ;_uu_ 4       p\        P                  P                  ^4      P                  \%        V4      4      VR&   W5R	&   VR	,          pVP&                  P)                  4       '       g   Q h R
R
R
4       VR,          p\	        . 4      Vn        \        VR,          \        P                  VR7       R
# u upi   + '       g   i     LS; i)r'   r(   r)   r*   rU   r   z
2000-01-01r.   )r   freqrd   r@   N:Nr   Nr   r3   )r   r   )   r   )rN   r5   )r   r6   r7   r;   r   r<   r:   nanrS   _check_roundtrip_tabler8   r=   r{   rx   ry   rz   r   r   r   _mgris_consolidatedr!   )r   r   r?   r@   tdfstorereconsr   s   &&      r   
test_framer   a  s    
biin$$W--d6l#uRy1y!r!Xy12
B FFBGGDMFFBGGDM
B!! 
B!! 
		a 009d6l#r<C
 R"" 
,		5II))!,<<SWE5	dt{{**,,,, 
  R&Cb	CISWb33,GE 2. 
 	s   H)A*HH/	c                    \        \        R 7      p\        R\        R7      p\        4       p\        . ROR7      p\        . ROR7      p\        V\        P
                  V R7       \        V\        P
                  V R7       \        V\        P                  V R7       \        V\        P                  V R7       \        V\        P                  V R7       R# )	r   myseries)r   r   r    r   r   NrD   rn   r   )der[   )r	   r   r   r{   r8   r9   r=   )r   s0s1df0r   r   s   &     r   test_empty_series_framer     s    	f	B	Zv	.B
+C
/
*C
O
,CR//lCR//lCS"//lCS"//lCS"//lCr   r   zm8[ns]r   c                 V    \        V R 7      p\        V\        P                  VR7       R# )r   r   N)r	   r{   r8   r9   )r   r   r   s   && r   test_empty_seriesr     s    UAQ..\Br   c                     \        R R4       Uu. uF  qP                  4       NK  	  pp\        \        P                  P                  ^4      P                  \        V4      ^34      VR7      p\        V\        P                  V R7       R# u upi )z1/1/2000z	1/30/2000r    r   N)r   r   r   r6   rx   ry   rz   r   r{   r8   r=   )r   xrngr,   s   &   r   test_can_serialize_datesr     sn    ([A
BA668AC
B
		a 00#c(A?sE UB11E Cs   Bc                 z   Tp\        V\        P                  V R 7       \        VP                  \        P                  V R 7       \        VR,          \        P                  V R 7       \        V 4      ;_uu_ 4       pW4R&   VR,          p\        P                  ! WS4       RRR4       R#   + '       g   i     R# ; i)r   r-   r,   N)r{   r8   r=   Tr9   r   )r   r    multiindex_dataframe_random_datar,   r   r   s   &&&   r   test_store_hierarchicalr     s     -EUB11EUWWb33,GU3Z!7!7lK 
,		5gw
f, 
 			s   ;$B))B:	c                 V   R  pV! 4       pV! 4       p\        V\        P                  VR7       \        V\        P                  VR7       \        V4      ;_uu_ 4       pW5R&   \        P                  ! VR,          V4       WER&   \        P                  ! VR,          V4       RRR4       \        VR,          \        P                  VV R7       \        VR,          \        P                  VV R7       \        VR,          \        P                  VV R7       R#   + '       g   i     L~; i)c                  n   \        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RVR&   RVR&   VR,          ^ 8  VR	&   VR
,          ^ 8  VR&   ^VR&   ^VR&   VP                  4       # u up i )r'   r(   r)   r*   rd   obj1barobj2r-   bool1r.   bool2int1int2r3   )r   r6   r7   r;   r   r<   r:   _consolidate)r?   r@   s     r   	_make_one#test_store_mixed.<locals>._make_one  s    "))C.((11$v,'5959a2aS956

 6
6
gk7gk76
6
   6s   B2r   r   Nr   r   r   r  )r{   r8   r=   r   r9   )r   r   r  r   r   r   s   &&    r   test_store_mixedr    s    ! +C
+CS"//lCS"//lC	,		5e
eElC0e
eElC0	 
  F
	 G
	 F
	' 
 	s   ADD(	c                     / pV'       d   R VR&   \        VR3/ VB ;_uu_ 4       pWR&   VR,          pV! Wp3/ VB  RRR4       R#   + '       g   i     R# ; i)blosccomplibwr   N)r   )r   
comparatorrU   r   r   optionsr   	retrieveds   &&&&,   r   r{   r{     sT    G$		$	'w	'	'5e%L	9,V, 
(	'	'	's   AA	c                     / pV'       d   R VR&   \        VR3/ VB ;_uu_ 4       pVP                  RV RR7       VR,          pV! W`4       RRR4       R#   + '       g   i     R# ; i)r  r	  r
  r   r/   )rP   N)r   put)r   r  rU   r   r  r   r  s   &&&&   r   r   r     sZ    G$		$	'w	'	'5		%W	-%L	9"	 
(	'	'	's   &AA&	c                     R R.p\        \        P                  P                  ^4      P	                  \        V4      4      V4      p\        V\        P                  V R7       R# )u   σu   σσr   N)	r	   r6   rx   ry   rz   r   r{   r8   r9   )r   unicode_valuesr   s   &  r   test_unicode_indexr    sO    /N
		a 00^1DE	A Q..\Br   c                 ^   R p\        RV./4      pV P                  RVRRR7       V P                  R4      p\        P                  ! W24       \        RRV.RRR./4      pV P                  R4       V P                  RVRRR7       V P                  R4      p\        P                  ! W24       R	# )
u   Δr-   r@   r/   zutf-8)rP   encodingrD   r.   rn   N)r   r  ro   r8   r=   r_   )rH   charr@   rA   s   &   r   test_unicode_longer_encodedr    s    D	C$=	!BdBwAt$F&%	C#tcC:6	7BdBwAt$F&%r   c           	         \        R . ROR. ROR. RO/4      p\        \        P                  ! ^
\        P                  R7      \        R^
R7      R7      pVP                  R,          VR&   \        V\        P                  V R	7       R
# )rD   rn   r   r   r   r   r    :Nr   Nr   r   Nr   )r   r   r   r   )
r   r	   r6   r7   r#   r   r!   r{   r8   r=   )r   r@   r   s   &  r   test_store_datetime_mixedr    sd    	CC#O	PB	
		"BJJ'z,PR/S
B hhrlBsGR..\Br   c                     \        R ^^.RRR./4      pVP                  V RRR7       \        V R4      p\        P                  ! W4       VP                  V4      '       g   Q hVP                  V4      '       g   Q hR# )r.   r-   r   r   r@   r/   r   rP   N)r   r   r   r8   r=   equals)r   r@   others   &  r   test_round_trip_equalsr  &  ss    	C!QsCj1	2BIIlWI5\4(E"$99U<<r   c                    \         P                  ! R 4       \        P                  ! RR4      ;_uu_ 4        \	        ^\        R4      \        \        ^
4      4      R7      P                  RR.4      pVP                  4       pVP                  V RRR	7       \        V R4      p\        P                  ! W24       R
R
R
4       R
#   + '       g   i     R
# ; i)pyarrowzfuture.infer_stringTr(   r*   r-   r.   r@   r/   r  N)rf   importorskippdoption_contextr   r<   r:   	set_indexcopyr   r   r8   r=   )r   r@   r   rA   s   &   r   test_infer_string_columnsr%  1  s    
	"			0$	7	7q$v,d59oFPP#J
 779
		,D	9,-
f/ 
8	7	7	7s   BCC	)F)>r   r   numpyr6   rf   pandas._libs.tslibsr   pandas.compatr   pandasr!  r   r   r   r   r	   r
   r8   r   r   r   pandas.utilr   tdr   
single_cpu
pytestmarkrB   rJ   rV   rX   r]   r`   rl   rs   r|   r   filterwarningsr   r   r   r   r   parametrizeparamskip_if_windowsr   r   r   r#   r   r   r   r   r  r{   r   r  r  r  r  r%   r   r   <module>r3     s    	   ) - 
 
 
 /kk$$%
46&4 4<:2B >?-D FG H$CG FG+3 H+3\
 E6<<B4F4FGH&H&HRD 288RZZ8"TUC VC
F-  E6<<B4F4FGH--`-	#C&C0r   