+
    xȇiv                         ^ RI t^ RIt^ RIt^ RIHtHt ^ RIHt	 ^ RI
Ht R tR tR t]P                  P!                  R4      R 4       t]P                  P!                  R4      R	 4       tR
 tR tR tR tR tR# )    N)	DataFrameSeries)read_hdfc                 ~   \        \        P                  P                  ^4      P                  R4      P	                  \        P
                  4      \        R4      \        R4      R7      pVP                  V RR7       \        V R4      p\        P                  ! W4       \        \        P                  P                  ^4      P                  R4      P	                  \        P                  4      \        R4      \        R4      R7      pVP                  V RR7       \        V R4      p\        P                  ! W4       R# )   abcdABCDEindexcolumnsdfkeyN      r   nprandomdefault_rngastype	complex64listto_hdfr   tmassert_frame_equal
complex128temp_h5_pathr   rereads   &  u/Users/max/.openclaw/workspace/postharvest/venv/lib/python3.14/site-packages/pandas/tests/io/pytables/test_complex.pytest_complex_fixedr"      s    	
		a ''/66r||D6lW
B IIlI%lD)F"%	
		a ''/66r}}E6lW
B
 IIlI%lD)F"%    c                    \        \        P                  P                  ^4      P                  R4      P	                  \        P
                  4      \        R4      \        R4      R7      pVP                  V RRR7       \        V RR7      p\        P                  ! W4       \        \        P                  P                  ^4      P                  R4      P	                  \        P                  4      \        R4      \        R4      R7      pVP                  V RRRR	7       \        V R4      p\        P                  ! W4       R
# )r   r   r	   r
   r   tabler   formatr   w)r   r'   modeNr   r   r   s   &  r!   test_complex_tabler*   #   s    	
		a ''/66r||D6lW
B IIlWI5l-F"%	
		a ''/66r}}E6lW
B IIlW3I?lD)F"%r#   c                 \   \         P                  ! . RO\         P                  R7      p\         P                  ! . RO\         P                  R7      p\	        R. ROR. RORVRVR. RO/\        R4      R7      pVP                  V R	R
7       \        V R	4      p\        P                  ! W44       R# )      ?dtypeABCDEr   r   r   r   N      ?      ?r6   r6   r6      r      r   abcdr,   g       @g      @g      @
r   arrayr   r   r   r   r   r   r   r   r   r   r   r   r    s   &    r!   test_complex_mixed_fixedrC   9   s    8I 8J 
%%	
 6l	
B IIlI%lD)F"%r#   zDignore:`alltrue` is deprecated as of NumPy 1.25.0:DeprecationWarningc                    \         P                  ! . RO\         P                  R7      p\         P                  ! . RO\         P                  R7      p\	        R. ROR. RORVRVR. RO/\        R4      R7      pV P                  R	VRR.R
7       V P                  R	RR7      p\        P                  ! VP                  VP                  ^8  ,          V4       R# )r,   r-   r/   r0   r1   r2   r3   r   r4   r   data_columnszA>2)whereNr5   r7   r:   r?   )r   rA   r   r   r   r   appendselectr   r   locr/   )temp_hdfstorer   r   r   results   &    r!   %test_complex_mixed_table_store_selectrM   O   s     8I 8J 
%%	
 6l	
B rc
;!!$e!4F"&&*F3r#   c                 ^   \         P                  ! . RO\         P                  R7      p\         P                  ! . RO\         P                  R7      p\	        R. ROR. RORVRVR. RO/\        R4      R7      pVP                  V R	R
R7       \        V R	4      p\        P                  ! W44       R# )r,   r-   r/   r0   r1   r2   r3   r   r4   r   r%   r&   Nr5   r7   r:   r?   r@   rB   s   &    r!   &test_complex_mixed_table_store_to_pathrO   i   s     8I 8J 
%%	
 6l	
B IIlWI5lD)F"%r#   c                 >   \         P                  ! . R	O4      p\        V\        R4      R7      p\	        RVRV/4      pW#.p\
        P                  \
        P                  .p\        WE4       F-  w  rgVP                  V RRR7       \        V R4      pV! Wh4       K/  	  R# )
r,   r   r4   r/   r0   objfixedr&   Nr5   )r   rA   r   r   r   r   assert_series_equalr   zipr   r   )	r   r   sr   objscompsrQ   compr    s	   &        r!   $test_complex_across_dimensions_fixedrY      s    JKJzf.A	CC#	$B7D##R%:%:;E%	

<U7
;,.S &r#   c                     \         P                  ! . R	O4      p\        V\        R4      R7      p\	        RVRV/4      pVP                  V RRR7       \        V R4      p\        P                  ! W44       R# )
r,   r   r4   r/   r0   rQ   r%   r&   Nr5   )	r   rA   r   r   r   r   r   r   r   )r   r   rU   r   r    s   &    r!   test_complex_across_dimensionsr[      s`    JKJzf.A	CC#	$BIIlgI6lE*F"%r#   c                 F   \         P                  ! . RO\         P                  R7      p\        R. ROR. RORV/\	        R4      R7      pRp\
        P                  ! \        VR7      ;_uu_ 4        V P                  R	VR.R
7       RRR4       R#   + '       g   i     R# ; i)r,   r-   r/   r0   r1   r   r4   Columns containing complex values can be stored but cannot be indexed when using table format. Either use fixed format, set index=False, or do not include the columns containing complex values to data_columns when initializing the table.matchr   rE   Nr5   r7   r:   )	r   rA   r   r   r   pytestraises	TypeErrorrH   )rK   r   r   msgs   &   r!   test_complex_indexing_errorrd      s    8J 
	lC!5sJG6l
B	>  
y	,	,T2SE: 
-	,	,	,s   /BB 	c                 |   \         P                  ! . RO4      p\        V\        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       VP                  V RRR	R
7       \        V R4      p\        P                  ! W$4       R#   + '       g   i     LI; i)r,   r   r4   r]   r^   rQ   tr&   NF)r   r'   r   r5   )r   rA   r   r   r`   ra   rb   r   r   r   rS   )r   r   rU   rc   r    s   &    r!   test_complex_series_errorrg      s    JKJzf.A	>  
y	,	,	55 
- HH\uSH>lE*F1% 
-	,s   B++B;	c                    \        R \        P                  P                  ^4      P	                  ^d4      P                  \        P                  4      R\        P                  P                  ^4      P	                  ^d4      /4      pV P                  RVR.R7       V P                  RV4       V P                  R4      p\        P                  ! \        P                  ! W.^ R7      V4       R# )r;   r<   r   rE   )axisN)r   r   r   r   standard_normalr   r   rH   rI   r   r   pdconcat)rK   r   rL   s   &  r!   test_complex_appendrm      s    	&&q)99#>EEbmmT&&q)99#>	

B r6r"!!$'F"))RH15v>r#   )numpyr   r`   pandasrk   r   r   pandas._testing_testingr   pandas.io.pytablesr   r"   r*   rC   markfilterwarningsrM   rO   rY   r[   rd   rg   rm    r#   r!   <module>rv      s        '&*&,&, J44. J&&.
&;*&(?r#   