
    Eg                     Z   d dl Z d dlZd dlZd dlZd dlZd dlZd dlZd dl	Z
d dl	mZmZmZmZmZmZmZmZmZmZ d dlmZ d dlmZmZ d dlmZmZ ej        j        Z  ej!        d          Z"d Z#d Z$d Z%d	 Z&d
 Z'd Z(ej        )                    ddddh e*            f e*            ddhfdhddhf e*            dhfdfddhddhf e*            dhfdfg          d             Z+d Z,d Z-d Z.d Z/ej        )                    ddd g          d!             Z0d" Z1d# Z2d$ Z3d% Z4d& Z5d' Z6d( Z7d) Z8ej        )                    d*dd+g          ej        )                    d,d dg          d-                         Z9d. Z:d/ Z;d0 Z<d1 Z=d2 Z>d3 Z?d4 Z@d5 ZAej        )                    d6g d7          d8             ZBd9 ZCd: ZDd; ZEej        )                    d<d=d>g          d?             ZFd@ ZGdA ZHdB ZIej        J                    dC          ej        )                    dD ed dEgejK        F           edGdHgejL        F           edIdJK           edLdJK           edIdJdMN          g          dO                         ZMej        )                    dPddQg          dR             ZNdS ZOdT ZPdS )U    N)
	DataFrameDatetimeIndexIndex
MultiIndexSeries	Timestampconcat
date_rangeperiod_rangetimedelta_range)_maybe_removeensure_clean_storeHDFStoreread_hdftablesc                    t          j        |           5 }	 t          |          5 }t          d          # 1 swxY w Y   n# t          $ r Y nw xY wd d d            n# 1 swxY w Y   t          j        |           5 }t          |          5 }t	          dt          j        d                              d          z  t          t          d          t                    t          d t          d          D             t                    	          |d
<   t          |          dk    sJ t          |d
                   t          k    sJ 	 d d d            n# 1 swxY w Y   d d d            d S # 1 swxY w Y   d S )Nblah皙?x         ABCDdtypec                     g | ]}d | S zi- .0is     X/var/www/sysmax/venv/lib/python3.11/site-packages/pandas/tests/io/pytables/test_store.py
<listcomp>z test_context.<locals>.<listcomp>3       999!X!XX999    r   columnsindexa   )tmensure_cleanr   
ValueErrorr   nparangereshaper   listobjectrangelentype)
setup_pathpathtbls      r#   test_contextr:   '   sL   		$	$ 	$ )3 ((() ) ) ) ) ) ) ) ) 	 	 	D		               
	$	$ /d^^ 	/s binn,,W555d6ll&99999uRyy999HHH  CH
 s88q====C>>Y.....	/ 	/ 	/ 	/ 	/ 	/ 	/ 	/ 	/ 	/ 	/ 	/ 	/ 	/ 	// / / / / / / / / / / / / / / / / /s   AA6:	A:	AA
AAAAA"%A"=E1B?EE1E	E1 E	!E11E58E5c                     t           j        dfdfd} || d          } || d          }t          j        d            || d          } || d          }||k    sJ ||k    sJ d S )N   c                      |            t          | d          5 t          fdd          D ]}                    |           	 d d d            n# 1 swxY w Y                                   S )Nrbc                  >                          j        z            S N)read
block_size)chunk_num_blocksfhs   r#   <lambda>z7test_no_track_times.<locals>.checksum.<locals>.<lambda>@   s    aff-=-L&M&M r&   r&   )openiterupdatedigest)filenamehash_factoryrC   chunkrD   rE   s     ` @@r#   checksumz%test_no_track_times.<locals>.checksum=   s    LNN(D!! 	 QMMMMMMsSS     	  	  	  	  	  	  	  	  	  	  	  	  	  	  	  xxzzs   .AA Ac           	          | z  }t          ddgi          }t          |d          5 }|                    d|ddd |           d d d            n# 1 swxY w Y    |          S )Nr*   r+   wmodetableT)formatdata_columnsr)   track_times)r   r   put)tmp_pathrV   r8   dfhdfrN   r7   s        r#   create_h5_and_return_checksumz:test_no_track_times.<locals>.create_h5_and_return_checksumD   s    *$aSz""d%%% 	GG!'    	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 x~~s   AAAF)rV   Tr+   )hashlibmd5timesleep)rX   r7   r[   checksum_0_tt_falsechecksum_0_tt_truechecksum_1_tt_falsechecksum_1_tt_truerN   s    `     @r#   test_no_track_timesrd   9   s     )0c           87eTTT66xTRRR 	JqMMM77eTTT66xTRRR "55555 !3333333r&   c                     t          |           5 }t          |          g k    sJ 	 d d d            d S # 1 swxY w Y   d S r@   )r   r2   r7   stores     r#   test_iter_emptyrh   d   s    	J	'	' !5E{{b     ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! !s   488c                 ~   t          |           5 }t          |           |                                 t          t	          j        dt          j                  t          dd                    |d<   t          t          d          dd t          d          D             	          |d
<   t          dt	          j        d          
                    d          z  t          t          d          t                    t          d t          d          D             t                              |d<   t          dt	          j        d          
                    d          z  t          t          d          t                    t          d t          d          D             t                              }d|d<   d|d<   |d         dk    |d<   |d         dk    |d<   d|d<   d|d <   d!|d"<   t          d#          |d$<   t          d%          |d&<   t          j        d'dd!dd          |d(<   t          j        d'dd)dd          |d*<   t          j        |j        |j        d)d+         dgf<   |                                }t+          j        t.          j        j                  5  ||d,<   d d d            n# 1 swxY w Y   |j                            |j        j        d-           |j        t          |          v sJ |j        t=          |          v sJ |                                 d d d            n# 1 swxY w Y   t          |           5 }t          dt	          j        d          
                    d          z  t          t          d          t                    t          d. t          d          D             t                              }|                    d,|           |                     d,          }t          |           t=          |           d d d            d S # 1 swxY w Y   d S )/N
   r   
2020-01-01periodsr)   r*   float64c                     g | ]}d | S )i_r   r    s     r#   r$   ztest_repr.<locals>.<listcomp>r   s    .K.K.KAxAxx.K.K.Kr&   )r   r)   br   r   r   r   c                     g | ]}d | S r   r   r    s     r#   r$   ztest_repr.<locals>.<listcomp>w       555aa555r&   r   r'   cc                     g | ]}d | S r   r   r    s     r#   r$   ztest_repr.<locals>.<listcomp>}   rt   r&   fooobj1barobj2Ar   bool1Bbool2Tbool3r+   int1   int220010102
timestamp120010103
timestamp2i  	datetime1   	datetime2   rY   bahc                     g | ]}d | S r   r   r    s     r#   r$   ztest_repr.<locals>.<listcomp>   rt   r&   )!r   reprinfor   r/   r0   ro   r
   r4   r   r1   r   r2   r3   r   dtdatetimenanlocr)   _consolidater,   assert_produces_warningpderrorsPerformanceWarning_handlecreate_grouprootrK   strappend
get_storer)r7   rg   rY   ss       r#   	test_reprr   j   s   	J	'	' *5U

Ib
+++:lTV3W3W3W
 
 
c
 "IIY.K.Kr.K.K.K
 
 
c
 ")C..((111$v,,f55555599555VDDD
 
 
c
 ")C..((111$v,,f55555599555VDDD
 
 

 6
6
gk7gk776
6
$Z00<$Z00<+dAq!Q77;+dAq!Q77;*,&rx!}vh&'__'	(DEE 	 	E$K	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	""5=#5u===~e,,,,~U++++

U* * * * * * * * * * * * * * *Z 
J	'	' 
5")C..((111$v,,f55555599555VDDD
 
 

 	T2T""QA
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
sJ   JL;)J;/L;;J?	?L;J?	A,L;;L?L?CP22P69P6c                    t          |           5 }t          t          j        dt          j                  t          dd                    |d<   t          dt          j        d                              d	          z  t          t          d
          t                    t          d t          d          D             t                              |d<   t          dt          j        d                              d	          z  t          t          d
          t                    t          d t          d          D             t                              |d<   d|v sJ d|v sJ d|vsJ d|v sJ d|v sJ d|vsJ d|vsJ t          j        t          j        d          5  t          dt          j        d                              d	          z  t          t          d
          t                    t          d t          d          D             t                              |d<   d d d            n# 1 swxY w Y   d|v sJ 	 d d d            d S # 1 swxY w Y   d S )Nrj   r   rk   rl   rn   r*   r   r   r   r   c                     g | ]}d | S r   r   r    s     r#   r$   z!test_contains.<locals>.<listcomp>   rt   r&   r   r'   rr   c                     g | ]}d | S r   r   r    s     r#   r$   z!test_contains.<locals>.<listcomp>   rt   r&   zfoo/barru   z/foo/barz/foo/bry   F)check_stacklevelc                     g | ]}d | S r   r   r    s     r#   r$   z!test_contains.<locals>.<listcomp>   r%   r&   znode()))r   r   r/   r0   ro   r
   r   r1   r   r2   r3   r4   r,   r   r   NaturalNameWarningrf   s     r#   test_containsr      s   	J	'	' "5Ib
+++:lTV3W3W3W
 
 
c
 ")C..((111$v,,f55555599555VDDD
 
 
c

 %")C..((111$v,,f55555599555VDDD
 
 
i
 e||||e||||%E!!!!U""""u$$$$E!!!! '%
 
 
 	 	  )binn,,W555d6ll&99999uRyy999HHH     E)	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 E!!!!!?" " " " " " " " " " " " " " " " " "s7   FI#.B
I8I#I	I#I		I##I'*I'c                 .   t          |           5 }t          t          j        dt          j                  t          dd                    |d<   t          dt          j        d                              d	          z  t          t          d
          t                    t          d t          d          D             t                              |d<   t          t          j                            d                              d          t          t          d
          t                    t          ddd                    }t          |d           |                    d|d d                    |                    d|dd                     |j        j        j        j        dk    sJ |j        j        j        j        dk    sJ |j        j        j        j        dk    sJ t          |d           |                    d|           d |                    d          j        _        d}t1          j        t4          |          5  |                    d           d d d            n# 1 swxY w Y   d d d            d S # 1 swxY w Y   d S )Nrj   r   rk   rl   rn   r*   r   r   r   r   c                     g | ]}d | S r   r   r    s     r#   r$   z#test_versioning.<locals>.<listcomp>   rt   r&   r   r'   rr   r   )   r   
2000-01-01r   r}   rm   freqdf1z0.15.2df2z/'NoneType' object has no attribute 'startswith'match)r   r   r/   r0   ro   r
   r   r1   r   r2   r3   r4   randomdefault_rngstandard_normalr   r   r   r*   _v_attrspandas_versionrr   r   get_nodepytestraises	Exceptionselect)r7   rg   rY   msgs       r#   test_versioningr      s   	J	'	'   5Ib
+++:lTV3W3W3W
 
 
c
 ")C..((111$v,,f55555599555VDDD
 
 
c

 I!!!$$44W==$v,,f555\2C@@@
 
 

 	eU###UBssG$$$UBrssG$$$z|$3x????z|$3x????z~&5AAAA 	eU###UB 9=u&5?]9C000 	  	 LL	  	  	  	  	  	  	  	  	  	  	  	  	  	  	 ?                                                     s6   I J
I2&J
2I6	6J
9I6	:J

JJzwhere, expected/first_groupsecond_groupr   r   third_groupdf3s1df4) /first_group/second_group/second_group/third_groupr   )r   r   c                    t          g d          t          g d          t          g d          t          g d          t          g d          t          j        g dg dg          t          j        ddgd          t          j        dd	gd          d
}t	          dd          5 }|                    d|d                    |                    d|d                    |                    d|d                    |                    d|d                    |                    d|d                    |j                            dd|d                    |j                            dd|d                    |j                            dd|d                    t          t          |                    |                               t          |          k    sJ |                    |           D ]\  }}}||v sJ ||         \  }}|t          |          k    sJ |t          |          k    sJ |D ]i}	d                    ||	g          }
|                    |
          }d |	v rt          j        |||	                    Nt          j        |||	                    j	 d d d            d S # 1 swxY w Y   d S )!N)r+   r   r   )r      r   )r         )	   rj      )rj   r   r   zi,i,ir   )r   r   r   )rj   r      )r   r   r   r   r   a1tb1tb2zwalk_groups.hdfrP   rQ   z/first_group/df1r   z/first_group/df2r   z/second_group/df3r   z/second_group/s1r   z/second_group/third_group/df4r   r   r   r   )objr   r   wherer   rY   )r   r   r/   arrayr   rW   r   create_arraycreate_tabler5   r2   walksetjoingetr,   assert_frame_equalassert_series_equal)r   expectedobjsrg   r8   groupsleavesexpected_groupsexpected_framesleaf
frame_pathr   s               r#   	test_walkr      s   0 ######%%ZZZ  h			999-..xI.g>>>xL1AAA
 
D 
-C	8	8	8 <E		$d5k222		$d5k222		%tE{333		$d4j111		14;???"">4dDDD"">5d5k"JJJ""?EtE{"KKK4


//0011S]]BBBB$)JJUJ$;$; 	< 	< D&&8####/7~,O_"c&kk1111"c&kk1111 < < XXtTl33
ii
++4<<)#tDz::::*3T
;;;;<	<< < < < < < < < < < < < < < < < < <s   ,G<J66J:=J:c           
      T   t          |           5 }t          t          j        dt          j                  t          dd                    }||d<   |j        }t          j        ||           t          |d          }t          j        ||           t          t          j                            d                              d          t          t          d	          t                     t          d
dd                    }||d<   |j        }t          j        ||           dD ]K}d| d}t'          j        t*          |          5  t          ||           d d d            n# 1 swxY w Y   LdD ]}t          |d|            	 d d d            d S # 1 swxY w Y   d S )Nrj   r   rk   rl   rn   r*   r   rj   r   r   r   r}   r   r'   rY   )drR   r8   handlecomplibz$'HDFStore' object has no attribute ''r   )rR   r8   r   r   _)r   r   r/   r0   ro   r
   r*   r,   r   getattrr   r   r   r   r   r2   r3   rY   r   r   r   AttributeError)r7   rg   r   resultrY   xr   s          r#   test_getattrr   )  s?   	J	'	' $5Ib
+++:lTV3W3W3W
 
 
 c
 
vq)))$$
vq)))I!!!$$44W==$v,,f555\2C@@@
 
 

 d
fb))) < 	" 	"A====C~S999 " "q!!!" " " " " " " " " " " " " " " 7 	$ 	$AE7q77####	$9$ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $s6   D>FE+F+E//F2E/3FF!$F!c                 ~   t          dt          j        dgdt          j        t          j        gdt          d                    }t          ddgdt          j        gdt          d                    }| |z  }|                    |dd	
           t          |d          }t          j        ||           | |z  }|                    |dd	d           t          |d          }t          j        ||           | |z  }|                    |dd	d           t          |d          }t          j        ||           d S )N               @      ?)col1col2abcrn   acrY   rS   keyrT   F)r   rT   dropnaT)r   r/   r   r2   to_hdfr   r,   r   )rX   r7   df_with_missingdf_without_missingr8   reloadeds         r#   test_store_dropnar  J  sT   rvs#c2626-BCC5kk  O #sc26]334::   j D4T':::d##H/8444j D4T'%HHHd##H/8444j D4T'$GGGd##H,h77777r&   c                     | |z  }d}t          ddddddddg          }t          j        t          |          5  |                    |d           d d d            d S # 1 swxY w Y   d S )NztStarting with pandas version 3.0 all arguments of to_hdf except for the argument 'path_or_buf' will be keyword-only.r+   r   r   )r{   r}   Cr   r   )r   r,   r   FutureWarningr   )rX   r7   r8   r   rY   s        r#   test_keyword_deprecationr  e  s    j D	7  
!!!,,AAA.F.FG	H	HB		#M	=	=	=  
		$                 s   A  A$'A$c           	         | |z  }t          g dg dt          g dt                    t          dd          d                              d	          }|                    |d
dddi           |                                                                                    d                              d	          }|                    |d
dd           t          j
        t          |d
          t          ||g                     |d                             |ddddi           |d                             |ddd           t          j        t          |d          t          |d         |d         g                     d S )N)r   r   r   g      @g      @)r   r   r   r   r   )foo1foo2foo3foo4foo5r   20130101r   rl   )r{   r}   r  Dr  ss3rS   r)   r   )r   rT   min_itemsizelonger)r  T)r   r   rT   r}   ss4)r   r   r3   r
   	set_indexr   copyreset_indexassignr,   r   r   r	   r   )rX   r7   r8   rY   r   s        r#   test_to_hdf_with_min_itemsizer  s  s   j D 
******???vNNNJ222		
 	

 
 inn  IIdgWaLIIII
''))


!
!
(
(8
(
4
4
>
>s
C
CCJJttGJ<<<(4//S	1B1BCCC sGNN4U7'1NNNNHOODeDOAAA8D%00&"S'3s89L2M2MNNNNNr&   rT   fixedrS   c                     dg}t          |t          |                    }| |z  }|                    |d|d           t          |dd          }t	          j        ||           d S )Nu   foorn   rS   surrogatepass)r   rT   r   )r   )r   r   r   r   r,   r   )rX   rT   r7   dataserr8   r   s          r#   test_to_hdf_errorsr    sr    =D
U4[[
)
)
)Cj DJJtJHHHdGO<<<F63'''''r&   c           
         t          |           5 fd}t          t          j                            d                              d          t          t          d          t                    t          ddd	          
          }d|d<   d|d<   
                    d|ddg            |dd          j        du sJ  |dd          j        du sJ  |dd          j        du sJ 
                    d|dgddg            |dd          j        du sJ  |dd          j        du sJ  |dd          j        du sJ t          d                               d|           d}t          j        t           |          5                      d           d d d            n# 1 swxY w Y   d d d            d S # 1 swxY w Y   d S )Nc                 ^    t                              |           j        j        |          S r@   r   r   rS   colstcolumnrg   s     r#   colz$test_create_table_index.<locals>.col  '    5++A..496BBBr&   r   r   r   r   r   rj   r}   r   r'   rw   stringry   string2rD   rU   r)   Tf2)r)   rU   Fz1cannot create table index on a Fixed format storer   )r   r   r/   r   r   r   r   r2   r3   r
   r   
is_indexedr   rW   r   r   	TypeErrorcreate_table_indexr7   r%  rY   r   rg   s       @r#   test_create_table_indexr/    s   	J	'	' +5	C 	C 	C 	C 	C I!!!$$44W==$v,,f555\2C@@@
 
 

 89S"Hi+@AAAs3  +t3333s3!!,4444s3	""-5555 	T2hZx>STTTs4!!,5555s4""-5555s4##.%7777 	eT"""		$A]9C000 	+ 	+$$T***	+ 	+ 	+ 	+ 	+ 	+ 	+ 	+ 	+ 	+ 	+ 	+ 	+ 	+ 	+9+ + + + + + + + + + + + + + + + + +s6   E:GF-!G-F1	1G4F1	5GG	G	c           
         t          |           5 fd}t          t          j                            d                              d          t          t          d          t                    t          ddd	          
          }d|d<   d|d<   
                    d|dg            |dd          j        du sJ  |dd          j        du sJ d}t          j        t          |          5   |dd          j         d d d            n# 1 swxY w Y   d}t          j        t          |          5                      ddg           d d d            n# 1 swxY w Y   d d d            d S # 1 swxY w Y   d S )Nc                 ^    t                              |           j        j        |          S r@   r   r"  s     r#   r%  z:test_create_table_index_data_columns_argument.<locals>.col  r&  r&   r   r   r   r   r   rj   r}   r   r'   rw   r'  ry   r(  rD   r)  r)   Tz('Cols' object has no attribute 'string2'r   zcolumn string2 is not a data_column.
In order to read column string2 you must reload the dataframe 
into HDFStore and include string2 with the data_columns argument.r(   )r   r   r/   r   r   r   r   r2   r3   r
   r   r+  r   r   r   r-  r.  s       @r#   -test_create_table_index_data_columns_argumentr3    su    
J	'	' ?5	C 	C 	C 	C 	C I!!!$$44W==$v,,f555\2C@@@
 
 

 89S"H:666s3  +t3333s3!!,44448]>555 	+ 	+CY**	+ 	+ 	+ 	+ 	+ 	+ 	+ 	+ 	+ 	+ 	+ 	+ 	+ 	+ 	+
P 	
 ]>555 	? 	?$$S9+$>>>	? 	? 	? 	? 	? 	? 	? 	? 	? 	? 	? 	? 	? 	? 	?7? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?sZ   C#E74DE7D	E7D	 E7:EE7E#	#E7&E#	'E77E;>E;c                    t          j        t          dd          t          d          gddg          }t	          dg di|	          }t          |           5 }|                    d
|d           |                    d
d          }|j        dgd d f         }t          j
        ||           d d d            d S # 1 swxY w Y   d S )Nr   r   rl   dateid)namesr*   )r   g333333?g?gffffff?g      ?rn   rY   Tr)  zid == 1r   r+   )r   from_arraysr
   r4   r   r   r   r   ilocr,   r   )r7   idxrY   rg   actualr   s         r#   test_mi_data_columnsr<    s   

 	L!	,	,	,eAhh7~  C 
C22233	?	?	?B	J	'	' 05T2D111d)447A36?
fh///0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0s   AB??CCc           
         t          dt          j        d                              d          z  t	          t          d          t                    t	          d t          d          D             t                              }d	|d
<   d|d<   |d         dk    |d<   |d         dk    |d<   d|d<   d|d<   d|d<   t          d          	                    d          |d<   t          d          	                    d          |d<   t          d          	                    d          |d<   t          d          	                    d          |d<   t          j
        |j        |j        dd          d
gf<   |                                }t          |           5 }|                    d!|           t!          j        |                    d!          |           d d d            d S # 1 swxY w Y   d S )"Nr   r   r   r   r   c                     g | ]}d | S r   r   r    s     r#   r$   z+test_table_mixed_dtypes.<locals>.<listcomp>      111!X!XX111r&   r   r'   rw   rx   ry   rz   r{   r   r|   r}   r~   Tr   r+   r   r   r   r   nsr   r   r   r   r   r   r   	df1_mixed)r   r/   r0   r1   r   r2   r3   r4   r   as_unitr   r   r)   r   r   r   r,   r   r   r7   rY   rg   s      r#   test_table_mixed_dtypesrD    s   	binn$$W---d6ll&11111uRyy111@@@
 
 
B
 BvJBvJS'A+BwKS'A+BwKBwKBvJBvJ ,,44T::B| ,,44T::B|
++33D99B{O
++33D99B{O&(fBF28AaC=6("#			B	J	'	' =5["%%%
ell;77<<<= = = = = = = = = = = = = = = = = =s   ?G%%G),G)c                    d}dt          j        ddd          t          j        d          g}t          j                            ||          }t          j        ddd	          }t          |d|
          }t          |j	        |          
                    t          d                                                    }t          |           5 }|                    d|           |                    d          }t          j        ||           |                    d|           |                    d          }t          j        ||           d d d            d S # 1 swxY w Y   d S )NzSun Mon Tue Wed Thuz
2012-05-01i  r   r+   z
2014-05-01)holidaysweekmaskr   r   r   zMon Tue Wed Thu Fri Sat Sunr  rS   )r   r   r/   
datetime64r   offsetsCustomBusinessDayr
   r   weekdaymapsplitr   rW   r   r,   r   r   )	r7   weekmask_egyptrF  
bday_egyptmydtdtsr   rg   r   s	            r#   test_calendar_roundtrip_issuerR    s    +N
D!Q
l##H
 --N .  J ;tQ##D
T1:
6
6
6Cs{C  $$V,I,O,O,Q,Q%R%RSSA	J	'	' *5		'1g&&
vq)))Wa   g&&
vq)))* * * * * * * * * * * * * * * * * *s   BEE"Ec                 t   t          |           5 }t          t          j        dt          j                  t          dd                    }t          dt          j        d                              d          z  t          t          d	          t                    t          d
 t          d          D             t                              }||d<   ||d<   t          |d           t          |          dk    sJ t          j        ||d                    t          |d           t          |          dk    sJ t!          j        t$          d          5  |                    d           d d d            n# 1 swxY w Y   ||d<   ||d<   t          |d           t          |d           t          |          dk    sJ ||d<   ||d<   t          |d           t          |          dk    sJ ||d<   ||d<   |d= |d= t          |          dk    sJ 	 d d d            d S # 1 swxY w Y   d S )Nrj   r   rk   rl   rn   r   r   r   r   c                     g | ]}d | S r   r   r    s     r#   r$   ztest_remove.<locals>.<listcomp>&  rt   r&   r   r'   r*   rr   r+   r   z1'No object named a_nonexistent_store in the file'r   a_nonexistent_storezb/foorw   )r   r   r/   r0   ro   r
   r   r1   r   r2   r3   r4   r   r5   r,   r   r   r   KeyErrorremove)r7   rg   tsrY   s       r#   test_removerY    s   	J	'	' )5Ib
+++:lTV3W3W3W
 
 
 ")C..((111$v,,f55555599555VDDD
 
 

 c
c
eS!!!5zzQ
b%*---eS!!!5zzQ ]O
 
 
 	0 	0 LL.///	0 	0 	0 	0 	0 	0 	0 	0 	0 	0 	0 	0 	0 	0 	0 c
geU###eW%%%5zzQc
geS!!!5zzQ c
c
#J#J5zzQS) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) )s7   EH-F5H-F	H-F		BH--H14H1c                 d   t          |           5 }t          t          j                            d                              d          t          dd                    }|                    d|d	           ||j        t          d
          k             }|
                    dd          }t          j        ||           |
                    dd          }t          j        ||           |
                    dd          }t          j        ||           d d d            d S # 1 swxY w Y   d S )Nr   )r   r   r  r   rl   rn   rY   rS   rT   20130105z!index>datetime.datetime(2013,1,5)zindex>datetime(2013,1,5))r   r   r/   r   r   r   r
   rW   r)   r   r   r,   r   )r7   rg   rY   r   r   s        r#   test_same_name_scopingr]  K  s`   	J	'	' 05I!!!$$44W==Z444
 
 
 			$7	+++bh:!6!667d$GHH
fh/// d$GHH
fh///d$>??
fh///'0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0s   DD%%D),D)c           
         t          dt          j        d                              d          z  t	          t          d          t                    t	          d t          d          D             t                              }d	|j        _	        t          |           5 }||d
<   |d
         }t          j        ||           d d d            d S # 1 swxY w Y   d S )Nr   r   r   r   r   c                     g | ]}d | S r   r   r    s     r#   r$   z)test_store_index_name.<locals>.<listcomp>f  r?  r&   r   r'   rw   frame)r   r/   r0   r1   r   r2   r3   r4   r)   namer   r,   r   )r7   rY   rg   reconss       r#   test_store_index_namerc  b  s   	binn$$W---d6ll&11111uRyy111@@@
 
 
B
 BHM	J	'	' *5gw
fb)))* * * * * * * * * * * * * * * * * *s   "#CCCtzz
US/Pacifictable_formatc                    t          t          j        ddd          t          j        ddd          gd                              |          }t          t          j        ddd          t          j        ddd          gd                              |                              |          }t          t          j        d                              dd          ||	          }| |z  }|	                    |d
|           t          |d
          }	t          j        ||	d           t          |	j        j        t                     sJ t          |	j        j        t                     sJ d S )Ni  r+   r   u   colsג)ra  i  u   rowsאr   r'   rY   r   T)check_names)r   r   r5  tz_localizerB  r   r/   r0   r1   r   r   r,   r   
isinstancer)   ra  r   r(   )
rX   re  r7   unitrd  r:  idx1rY   r8   r   s
             r#   test_store_index_name_numpy_strrl  p  s[    	q!		bgdAq112   k"oo 
 	WT1a  "'$1"5"56	
 	
 	
 
	R 	 
29Q<<''1--s$	G	G	GB j DIId\I222
4

C"ct4444cinc*****ck&,,,,,,,r&   c           
         t          dt          j        d                              d          z  t	          t          d          t                    t	          d t          d          D             t                              }|d	         }t          |           5 }||d
<   |d
         }t          j
        ||           d d d            d S # 1 swxY w Y   d S )Nr   r   r   r   r   c                     g | ]}d | S r   r   r    s     r#   r$   z*test_store_series_name.<locals>.<listcomp>  r?  r&   r   r'   r{   series)r   r/   r0   r1   r   r2   r3   r4   r   r,   r   )r7   rY   ro  rg   rb  s        r#   test_store_series_namerp    s   	binn$$W---d6ll&11111uRyy111@@@
 
 
B
 WF	J	'	' /5 hx
vv.../ / / / / / / / / / / / / / / / / /s   #CCCc           
         t          |           5 }t          t          j                            d                              d          t          t          d          t                    t          ddd          	          |d
<   t          t          j        dt          j                  t          dd                    }||d
<   t          j        |d
         |           d d d            d S # 1 swxY w Y   d S )Nr   r   r   r   r   rj   r}   r   r'   r*   rk   rl   rn   )r   r   r/   r   r   r   r   r2   r3   r
   r   r0   ro   r,   r   )r7   rg   rX  s      r#   test_overwrite_noderr    s.   	J	'	' /5I!!!$$44W==$v,,f555\2C@@@
 
 
c

 Ib
+++:lTV3W3W3W
 
 
 c

uSz2.../ / / / / / / / / / / / / / / / / /s   CC22C69C6c           
         t          t          j                            d                              d          t          t          d          t                    t          ddd          	          }t          |           5 }t          |d
           |                    d
|           |                    d
          }|j        t          j        t          |j                            k                                    sJ t          |d
           t          t%          d          t%          d          d          }|                    d
|           |                    d
dg          }|j        t          j        d          k                                    sJ |                    d
|          }|j        ddd d f         }t+          j        ||           |                    d
ddg          }|j        t          j        d          dz   k                                    sJ |                    d
|          }|j        ddd d f         }t+          j        ||           t/          |t
                    sJ t          |d           t          |d           t          t          j                            d                              d          t          t          d          t                    t          ddd          	          }|                                                    dj                  }|                    d|ddg           |                    d|           |                    dddg          }|                    d|          }|                    d|          }	t7          ||	gd          }t7          ||gd          }||j        dk    |j        dk    z           }t+          j        ||d           d d d            n# 1 swxY w Y   t          |           5 }t          t          j                            d                              d           t          d!d"#          $          }|                    d
|           |                    d
d%          }|t?          |          j         dk             j        }
|j!        |
         }|                    d
|
          }t+          j        ||           |                    d
|
          }t+          j        ||           d&}tE          j#        tH          |'          5  |                    d
t          j        t          |          d(                     d d d            n# 1 swxY w Y   tE          j#        tH          |'          5  |                    d
t          j        t          |          dz                        d d d            n# 1 swxY w Y   tE          j#        tH          |'          5  |                    d
t          j        t          |                    d)           d d d            n# 1 swxY w Y   tE          j#        tH          |'          5  |                    d
t          j        t          |                    dd*           d d d            n# 1 swxY w Y   t          d!d+#          }|                    d
d,          }||j        %                    |                   }t+          j        ||           t          t          j                            d                              d-                    }|                    d|           |                    dg d.          }|j!        g d.         }t+          j        ||           d/gdz  }
d|
d0<   |                    d|
          }|j        |
         }t+          j        ||           |                    ddd1          }|dd         }t+          j        ||           d d d            d S # 1 swxY w Y   d S )2Nr   r   r   r   r   rj   r}   r   r'   rY   r   r{   r}   zindex<3r   r   r   zindex>=3zindex<=4r   r   r   z{}_2r2  r{   r)  zA>0zB>0r+   )axisF)
check_freq)  r   20000101rw  rl   rn   r)   zLwhere must be passed as a string, PyTablesExpr, or list-like of PyTablesExprr   ro   )r   start)r   ry  stopi  zindex in selectionrj   r   )r   r   r   Try  rz  )&r   r/   r   r   r   r   r2   r3   r
   r   r   r   select_as_coordinatesvaluesr0   r5   r)   allr4   r   r   r,   r   ri  r  renamerT   r	   r{   r}   select_columnr   monthr9  r   r   r,  isin)r7   rY   rg   ru   r   r   r   r   
df1_result
df2_resultr   r   	selections                r#   test_coordinatesr    sR	   	
	a  0099d6ll&111r<<<
 
 
B 
J	'	' -B5eT"""T2 ''--BIc"(mm44499;;;;; 	eT"""U1XXE!HH5566T2''yk::BIaLL(--/////d!,,6!A#qqq&>
fh///''z:.FGGBIaLL1,,1133333d!,,6!A#qqq&>
fh///!U##### 	eU###eU###I!!!$$44W==$v,,f555\2C@@@
 
 

 hhjj66UCsCj999UC   ''u~>>\\%++
\\%++
Z0q9993*1---XZ!^
Q?@
fh5AAAA[-B -B -B -B -B -B -B -B -B -B -B -B -B -B -Bd 
J	'	' :05I!!!$$44Y??Z666
 
 
 	T2g..-""(A-.475> d%00
fh/// d%00
fh///+ 	 ]9C000 	J 	JLLRYs2wwi%H%H%HLIII	J 	J 	J 	J 	J 	J 	J 	J 	J 	J 	J 	J 	J 	J 	J ]9C000 	= 	=LLRYs2ww{%;%;L<<<	= 	= 	= 	= 	= 	= 	= 	= 	= 	= 	= 	= 	= 	= 	= ]9C000 	B 	BLLRYs2ww%7%7qLAAA	B 	B 	B 	B 	B 	B 	B 	B 	B 	B 	B 	B 	B 	B 	B ]9C000 	K 	KLLRYs2ww%7%7qrLJJJ	K 	K 	K 	K 	K 	K 	K 	K 	K 	K 	K 	K 	K 	K 	K z3777	d*>??bhmmI../
fh/// ry,,Q//??HHIIUBe999557999%
fh/// b	e5116%=
fh/// e1266ad8
fh///u:0 :0 :0 :0 :0 :0 :0 :0 :0 :0 :0 :0 :0 :0 :0 :0 :0 :0s   NPPP1D"a9VaV	aV	 a>:X8aX	aX	a*8Y."a.Y2	2a5Y2	6a9[a[	a [	!E-aa"ac                    t          |           5 }t          t          j                            d                              d          t          j                            d                              d          d          }|                    d|           |                    dddd          }|j        dd	d
gf         }t          j	        ||           |                    dddd          }t          |          dk    sJ |j        ddd
gf         }t          j	        ||           d d d            d S # 1 swxY w Y   d S )Nr   r   rt  rY   zcolumns=['A']r   r   r}  r   r{   r   (   )r   r   r/   r   r   r   r   r   r,   r   r5   r7   rg   rY   r   r   s        r#   test_start_stop_tabler     s   	J	'	' 05Y**1--44R88Y**1--44R88 
 
 	T2dO11EE6!A#u*%
fh/// dO2BGG6{{a6"R%#,'
fh///%0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0s   DD;;D?D?c                 >   t          |           5 }t          ddgddgd          }|                    dgd d|d           |                    ddgdd	d
          }|j        d	gddgf         }t          j        ||           d d d            d S # 1 swxY w Y   d S )Nr+   r   )rw   ry   rw   )selectorr  r  )r  r  r   )r  ry  rz  ry   )r   r   append_to_multipleselect_as_multipler   r,   r   r  s        r#   test_start_stop_multipler  6  s   	J	'	' 
051vq!f5566  $//j 	! 	
 	
 	
 )) :QQ * 
 
 61#u~-.
fh///
0 
0 
0 
0 
0 
0 
0 
0 
0 
0 
0 
0 
0 
0 
0 
0 
0 
0s   A5BBBc                    t          |           5 }t          t          j                            d                              d          t          j                            d                              d          dt          dd                    }|                    d|           |                    ddd	
          }|j        dd	d d f         }t          j
        ||           |                    dd	d
          }|j        d	dd d f         }t          j
        ||           |                    ddd
          }|j        ddd d f         }t          j
        ||           |j        }|                    d|           |                    ddd	
          }|j        dd	         }t          j        ||           |                    dd	d
          }|j        d	d         }t          j        ||           t          dt          j        d                              d          z  t          t!          d          t"                    t          d t%          d          D             t"                              }t          j        |j        dd	ddf<   t          j        |j        dddf<   d d d            d S # 1 swxY w Y   d S )Nr   r   rt  r  rl   rn   rY   r   r   r}  rj   r   r  r   r   r   r   r   r   c                     g | ]}d | S r   r   r    s     r#   r$   z)test_start_stop_fixed.<locals>.<listcomp>m  rt   r&   r'   r   r+   r   r|  )r   r   r/   r   r   r
   rW   r   r9  r,   r   r{   r   r0   r1   r   r2   r3   r4   r   )r7   rg   rY   r   r   r   s         r#   test_start_stop_fixedr  E  s   	J	'	' *#5Y**1--44R88Y**1--44R88  Z444
 
 
 			$d!!4471Q36?
fh///d!"5571R47#
fh/// d"26672b5!!!8$
fh/// D		#qc336!A#;
vx000c446!B$<
vx000 ")C..((111$v,,f55555599555VDDD
 
 

 F!QqSF"bU*# *# *# *# *# *# *# *# *# *# *# *# *# *# *# *# *# *#s   J'KKKc           
         t          t          j                            d                              d                    }d |j        D             |_        d |j        D             |_        t          |           5 }|                    d|d           d}|	                    d|g          }t          j        ||j        d d |j        d d	         f                    d
}|	                    d|g          }t          j        ||j        d d |j        d d	d         f                    d d d            d S # 1 swxY w Y   d S )Nr   )2   d   c                     g | ]}|d S 3dr   r!   ru   s     r#   r$   z-test_select_filter_corner.<locals>.<listcomp>u  s    ,,,a1		,,,r&   c                     g | ]}|d S r  r   r  s     r#   r$   z-test_select_filter_corner.<locals>.<listcomp>v  s    000Q))000r&   r`  rS   r[  zcolumns=df.columns[:75]K   zcolumns=df.columns[:75:2])r   r/   r   r   r   r)   r(   r   rW   r   r,   r   r   )r7   rY   rg   critr   s        r#   test_select_filter_cornerr  s  s   	29((++;;IFF	G	GB,,28,,,BH00RZ000BJ	J	'	' 	D5		'2g	...(gv..
fbfQQQ
3B3-?&@AAA*gv..
fbfQQQ
5Bq50A-A&BCCC	D 	D 	D 	D 	D 	D 	D 	D 	D 	D 	D 	D 	D 	D 	D 	D 	D 	Ds   ;B.D66D:=D:c            
      p   t          dt          j        d                              d          z  t	          t          d          t                    t	          d t          d          D             t                              t          j	        fd	d
           } t          j
        |            d S )Nr   r   r   r   r   c                     g | ]}d | S r   r   r    s     r#   r$   z%test_path_pathlib.<locals>.<listcomp>  r?  r&   r   r'   c                 2                         | d          S NrY   r   r   prY   s    r#   rF   z#test_path_pathlib.<locals>.<lambda>      "))A4)(( r&   c                 "    t          | d          S NrY   r   r  s    r#   rF   z#test_path_pathlib.<locals>.<lambda>      HQ4E4E r&   r   r/   r0   r1   r   r2   r3   r4   r,   round_trip_pathlibr   r   rY   s    @r#   test_path_pathlibr    s    	binn$$W---d6ll&11111uRyy111@@@
 
 
B "((((*E*E F "f%%%%%r&   zstart, stop))r   r   )r+   r   )NNc                 L   t          t          g d          t          g d          d          }t          |          5 }|                    d|           |                    d| |          }t          j        || |         |           d d d            d S # 1 swxY w Y   d S )N)i2i2i2)abcdr  r*   rr   test_datasetr}  )r   r   r   r   r   r,   r   )ry  rz  r7   rY   rg   r   s         r#    test_contiguous_mixed_data_tabler    s     
66677***++	
 	

 
B 
J	'	' 65^R(((nEEE
btnf555	6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6s    ABB Bc            
      x   t          dt          j        d                              d          z  t	          t          d          t                    t	          d t          d          D             t                              fd	} d
 }t          j	        | |          }t          j
        |           d S )Nr   r   r   r   r   c                     g | ]}d | S r   r   r    s     r#   r$   z.test_path_pathlib_hdfstore.<locals>.<listcomp>  r?  r&   r   r'   c                     t          |           5 }                    |d           d d d            d S # 1 swxY w Y   d S r  r   r   r8   rg   rY   s     r#   writerz*test_path_pathlib_hdfstore.<locals>.writer      d^^ 	'uIIeI&&&	' 	' 	' 	' 	' 	' 	' 	' 	' 	' 	' 	' 	' 	' 	' 	' 	' 	'   6::c                 t    t          |           5 }t          |d          cd d d            S # 1 swxY w Y   d S r  r   r8   rg   s     r#   readerz*test_path_pathlib_hdfstore.<locals>.reader  |    d^^ 	)uE4((	) 	) 	) 	) 	) 	) 	) 	) 	) 	) 	) 	) 	) 	) 	) 	) 	) 	)   -11r  r  r  r   rY   s      @r#   test_path_pathlib_hdfstorer    s    	binn$$W---d6ll&11111uRyy111@@@
 
 
B' ' ' ' ') ) ) "6622F"f%%%%%r&   c            
      p   t          dt          j        d                              d          z  t	          t          d          t                    t	          d t          d          D             t                              t          j	        fd	d
           } t          j
        |            d S )Nr   r   r   r   r   c                     g | ]}d | S r   r   r    s     r#   r$   z.test_pickle_path_localpath.<locals>.<listcomp>  r?  r&   r   r'   c                 2                         | d          S r  r  r  s    r#   rF   z,test_pickle_path_localpath.<locals>.<lambda>  r  r&   c                 "    t          | d          S r  r  r  s    r#   rF   z,test_pickle_path_localpath.<locals>.<lambda>  r  r&   r  r  s    @r#   test_pickle_path_localpathr    s    	binn$$W---d6ll&11111uRyy111@@@
 
 
B
 "((((*E*E F "f%%%%%r&   c            
      x   t          dt          j        d                              d          z  t	          t          d          t                    t	          d t          d          D             t                              fd	} d
 }t          j	        | |          }t          j
        |           d S )Nr   r   r   r   r   c                     g | ]}d | S r   r   r    s     r#   r$   z0test_path_localpath_hdfstore.<locals>.<listcomp>  r?  r&   r   r'   c                     t          |           5 }                    |d           d d d            d S # 1 swxY w Y   d S r  r  r  s     r#   r  z,test_path_localpath_hdfstore.<locals>.writer  r  r  c                 t    t          |           5 }t          |d          cd d d            S # 1 swxY w Y   d S r  r   r  s     r#   r  z,test_path_localpath_hdfstore.<locals>.reader  r  r  )r   r/   r0   r1   r   r2   r3   r4   r,   round_trip_localpathr   r  s      @r#   test_path_localpath_hdfstorer    s    	binn$$W---d6ll&11111uRyy111@@@
 
 
B' ' ' ' ') ) ) $VV44F"f%%%%%r&   propindexesTFc           
         t          dt          j        d                              d          z  t	          t          d          t                    t	          d t          d          D             t                              }t          j	                    5 }t          |          5 }|                    d	|d
g           d d d            n# 1 swxY w Y   t          j                    5 }t          |          5 }t          j        |                    |j        d |                     5 }|                                }t'          |          t'          |                                          k    sJ |                                D ]}|                    |          j        rc|                    |          }	|                    |          }
|
j        |	j        k    sJ | r%|
j        D ]}|j        r|	|j                 j        sJ 	 d d d            n# 1 swxY w Y   d d d            n# 1 swxY w Y   d d d            n# 1 swxY w Y   d d d            d S # 1 swxY w Y   d S )Nr   r   r   r   r   c                     g | ]}d | S r   r   r    s     r#   r$   ztest_copy.<locals>.<listcomp>  r?  r&   r   r'   rY   r{   r)  )keysr  )r   r/   r0   r1   r   r2   r3   r4   r,   r-   r   r   tempfileNamedTemporaryFile
contextlibclosingr  ra  r  r   r   is_tablenrowsaxesr+  )r  rY   r8   stnew_frg   tstorer  knew_torig_tr*   s               r#   	test_copyr    s   	binn$$W---d6ll&11111uRyy111@@@
 
 
B 
		 Hdd^^ 	4rIIdBcUI333	4 	4 	4 	4 	4 	4 	4 	4 	4 	4 	4 	4 	4 	4 	4(** 	He$ H5'JJuz+JNN  H ::<<Dt99FKKMM(:(:::::#[[]] H H!,,Q//8 
H$*$5$5a$8$8E%*%5%5a%8%8F#)<5;#>#>#>#>  + H)/ !H !HA'(| %H/4QV}/G(G(G(GHH H H H H H H H H H H H H H HH H H H H H H H H H H H H H H	H 	H 	H 	H 	H 	H 	H 	H 	H 	H 	H 	H 	H 	H 	HH H H H H H H H H H H H H H H H H Hs   I*CIC	IC	I.I>0H/.CH	H/HH/H H/#I/H33I6H37I:II
	
II
	II"%I"c                    t          ddgddgg          }| |z  }d}t          j        t          |          5  |                    |dd           d d d            n# 1 swxY w Y   |                    |dd	           t          |d          }t          j        ||           |                    |          sJ |                    |          sJ d S )
Nr*   r   )r(   r  z/Columns index has to be unique for fixed formatr   rY   r  r   rS   )	r   r   r   r.   r   r   r,   r   equals)rX   r7   rY   r8   r   others         r#   test_duplicate_column_namer    s!   	C:aVH	5	5	5Bj D
;C	z	-	-	- 2 2
		$D	1112 2 2 2 2 2 2 2 2 2 2 2 2 2 2 IIdWI---T4  E"e$$$99U<<s   AA"%A"c                 F   t          t          j                            d                              d                    }t          dddd          |_        t          |           5 }||d	<   t          j	        |d	         |           d d d            d S # 1 swxY w Y   d S )
Nr   )rj   r   )size0srj   1sexample)ry  rm   r   ra  rY   )
r   r/   r   r   normalr   r)   r   r,   r   rC  s      r#   !test_preserve_timedeltaindex_typer    s    	29((++222@@	A	ABT2DyQQQBH	J	'	' /5d
eDk2.../ / / / / / / / / / / / / / / / / /s   (!BBBc                     t          t          j                            d                              d          t	          d          t	          d                    }d|j        _        |                    dd	          }|j        j        |j	        
                                z   }| |z  }|                    |d
dd|d           t	          d          }t	          |          }t          |d
|           ||k    sJ d S )Nr   )r   r   abcdABCDE)r)   r(   lettersET)r  r   rY   r*   F)r   rR   r   rU   r)   BCDr2  )r   r/   r   r   r2   r)   ra  r  r7  r(   tolistr   r   )rX   r7   rY   rU   r8   	cols2loadcols2load_originals          r#    test_columns_multiindex_modifiedr    s    

	a  ''//6llW
 
 
B
 BHM	3t	,	,B8>BJ$5$5$7$77Lj DII!     UIiT4++++******r&   z3ignore:PeriodDtype\[B\] is deprecated:FutureWarningr(   r+   r   r   r   rk   r   rl   z1 dayr  r   c                 0   t          t          j                            d                              d          |          }| |z  }d}t          j        t          |          5  |                    |ddd	           d d d            d S # 1 swxY w Y   d S )
Nr   r{  r2  z-cannot have non-object label DataIndexableColr   rY   rS   Tr   rT   rU   )	r   r/   r   r   r   r   r   r.   r   )rX   r7   r(   rY   r8   r   s         r#   0test_to_hdf_with_object_column_names_should_failr  ,  s     
29((++;;GDDg	V	V	VBj D
9C	z	-	-	- E E
		$Dt	DDDE E E E E E E E E E E E E E E E E Es   $BBBr   categoryc                 J   t          t          j                            d                              d          t          ddg|                    }| |z  }|                    |ddd	
           t          |dd|j        d          d          }t          |          sJ d S )Nr   r{  r*   rr   r   r2  rY   rS   Tr  z	index = [r   ]r   )
r   r/   r   r   r   r   r   r   r)   r5   )rX   r7   r   rY   r8   r   s         r#   /test_to_hdf_with_object_column_names_should_runr  @  s     

	a  0099sCj...
 
 
B j DIIdW4I@@@dD(BBHQK(B(B(BCCCFv;;r&   c                    t          g dg dd          }t          |           5 }|                    d|           |d         j        j        |d         d         j        j        k    sJ 	 d d d            d S # 1 swxY w Y   d S )N)r+   r   r   r   )r   r   r   r   r  rY   r*   )r   r   rW   r  stridesrC  s      r#   test_hdfstore_stridesr  M  s    	LLL99	:	:B	J	'	' I5		$#w~%tS)9)@)HHHHHHI I I I I I I I I I I I I I I I I Is   AA99A= A=c                     t          dggdgt          dgd                    }|                                }| |z  }|                    |d           t	          |d          }t          j        ||           d S )	Nr+   TFboolr   r'   r*   r  )r   r   r  r   r   r,   r   )rX   r7   rY   r   r8   r   s         r#   test_store_bool_indexr  U  s    	QC54&ugV0L0L0L	M	M	MBwwyyH j DIIdIdC  F(F+++++r&   )Qr  r   r   r\   r  r^   numpyr/   r   pandasr   r   r   r   r   r   r   r	   r
   r   r   pandas._testing_testingr,   pandas.tests.io.pytables.commonr   r   pandas.io.pytablesr   r   mark
single_cpu
pytestmarkimportorskipr   r:   rd   rh   r   r   r   parametrizer   r   r   r  r  r  r  r/  r3  r<  rD  rR  rY  r]  rc  rl  rp  rr  r  r  r  r  r  r  r  r  r  r  r  r  r  r  filterwarningsint64ro   r  r  r  r  r   r&   r#   <module>r     s                                                          
       
 [#
		X	&	&/ / /$(4 (4 (4V! ! !8 8 8v "  "  "F!  !  ! H  #^4ccee<!$ 7#0/E4=!A.1ceeeW-=	 	
 #0/E4=!A.1ceeeW-= 	
 *%< %<+ *%<P$ $ $B8 8 86  O O O0 GW#566( ( 76(+ + +B? ? ?D0 0 0= = =4* * *6* * *Z0 0 0.* * * l344'7);<<- - =< 54-6/ / // / /s0 s0 s0l0 0 0,0 0 0+# +# +#\D D D"
& 
& 
& (F(F(FGG6 6 HG6 & & &&	& 	& 	&& & && u66H H 76HB   / / /+ + +8 RSSq!fBH%%%sCj
+++
<++++++\13777	 	E E	 	 TSE 4"455	 	 65	I I I
, 
, 
, 
, 
,r&   