+
    xȇi                        ^ RI t ^ RIt^ RIHt ^ RIt^ RIt^ RIH	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 ^ RIHt ^ RIHt ^ RIHt ]P<                  P?                  R	. RO4      R 4       t ]P<                  P?                  R. RO. RO. RO. RO. RO. RO. RO. RO. RO. RO. RO. RO]PB                  ]PB                  ]PB                  ..4      R 4       t"R t#R t$]P<                  P?                  R. RO. RO]PJ                  ]PJ                  ]PJ                  .R]PJ                  R.R]PJ                  R.R]PJ                  R..4      R 4       t&]P<                  P?                  RRR]PN                  ! R.](R7      ]PN                  ! ]PJ                  .RR7      3RR]PN                  ! ]PJ                  .RR7      ]PN                  ! R.](R7      3RR]PN                  ! ]PJ                  .RR7      ]PN                  ! ]PJ                  .RR7      3RR]PN                  ! ]PJ                  .RR7      ]PN                  ! ]PJ                  .RR7      3.4      R 4       t)]P<                  P?                  R	. RO4      R 4       t*]P<                  P?                  RR]PJ                  ]PB                  .R3R]PJ                  ^]PB                  .R3R]PJ                  ]PV                  .R3R]PJ                  R]PV                  .R3.4      R  4       t,R! t-R" t.]P<                  P?                  R#R$R%.4      R& 4       t/]P<                  P?                  R#R$R%.4      R' 4       t0]P<                  P?                  R(R$R)^ ^.R*^^.R+^^./3R%R)^^.R*^ ^.R+^ ^./3.4      ]P<                  P?                  R,RR.4      R- 4       4       t1]P<                  P?                  R]! R.4      ]! R/4      3R.4      ]P<                  P?                  R0. RO4      R6 4       4       t2]P<                  P?                  R#R4R5.4      R7 4       t3R8 t4R9 t5]P<                  P?                  R:^ ^]PB                  ^^^^^^^	.
RR3^ ^]PJ                  ^^^^^^^	.
RR3^ ^]PJ                  ^^^^^^^	.
RR3^ ^]PB                  ^^^^^^^	.
R;R;3]Pl                  ! R<]PV                  R=R>R?R@RARBRCRD.
4      RERE3.4      RF 4       t7]P<                  P?                  RG^ ^]PB                  ^^^^^^^	.
R3^ ^]PJ                  ^^^^^^^	.
R3^ ^]PJ                  ^^^^^^^	.
R3^ ^]PB                  ^^^^^^^	.
R;3.4      RH 4       t8RI t9]P<                  P?                  RJ. RK^ ^^]PB                  ^^^^R^	.
RR3NRK^ R^^^]PJ                  ^^^^	.
RR3NRK^ ^^R^^^R]PJ                  ^	.
RR3NRK]PB                  .^
,          RR3NRK]PJ                  .^
,          RR3NRK]PJ                  .^
,          RR3NRL^ R^^]PB                  ^^^^^	.
RR3NRL^ ^^R^^^R^	]PJ                  .
RR3NRL^ R^^^R^]PJ                  ^^	.
RR3NRL]PB                  .^
,          RR3NRL]PJ                  .^
,          RR3NRL]PJ                  .^
,          RR3NRM^ ^^R^^^R]PB                  ^	.
RR3NRM^ R^^^R^]PJ                  ^^	.
RR3NRM^ ^^R^^^R^	]PJ                  .
RR3NRM]PB                  .^
,          RR3NRM]PJ                  .^
,          RR3NRM]PJ                  .^
,          RR3NRN^ R^^^R^]PB                  ^^	.
RR3NRN^ ^^R^^^R]PJ                  ^	.
RR3NRN^ R^^^R^^^	]PJ                  .
RR3NRN]PB                  .^
,          RR3NRN]PJ                  .^
,          RR3NRN]PJ                  .^
,          RR3NR2^ R^^^R^]PB                  ^^	.
RR3NR2^ ^^R^^^R]PJ                  ^	.
RR3NR2^ R^^^R^^^	]PJ                  .
RR3NR2^ ^]PB                  ^^^^^^^	.
R;R;3NR2]Pl                  ! R<]PV                  R=R>R?R@RARBRCRD.
4      RERE3NR2]PB                  .^
,          RR3NR2]PJ                  .^
,          RR3NR2]PJ                  .^
,          RR3NR3^ R^^^R^]PB                  ^^	.
RR3NR3^ ^^R^^^R]PJ                  ^	.
RR3NR3^ R^^^R^^^	]PJ                  .
RR3NR3^ ^]PB                  ^^^^^^^	.
R;R;3NR3]Pl                  ! R<]PV                  R=R>R?R@RARBRCRD.
4      RERE3NR3]PB                  .^
,          RR3NR3]PJ                  .^
,          RR3NR3]PJ                  .^
,          RR3NRO^ R^^^R^]PB                  ^^	.
RR3NRO^ ^^R^^^R]PJ                  ^	.
RR3NRO^ R^^^R^^^	]PJ                  .
RR3NRO^ ^]PB                  ^^^^^^^	.
R;R;3NRO]Pl                  ! R<]PV                  R=R>R?R@RARBRCRD.
4      RERE3NRO]PB                  .^
,          RR3NRO]PJ                  .^
,          RR3NRO]PJ                  .^
,          RR3N4      RP 4       t:RQ t;RR t<RS t=RT t>RU t?RV t@RW tA]P<                  P?                  RXR2R3.4      RY 4       tB]P<                  P?                  RXR2R3.4      RZ 4       tCR[ tD]P<                  P?                  RXR2R3.4      R\ R] l4       tE]P<                  P?                  R	. RO4      R^ 4       tFR_ tG]P<                  P?                  RX. RO4      R` 4       tH]P<                  P?                  RXR2R3.4      Ra 4       tI]P<                  P?                  Rb^ ^.4      ]P<                  P?                  RcRR.4      Rd 4       4       tJRe tK]P<                  P                  ]P<                  P?                  RfRR.4      ]P<                  P?                  RgRh.RhRi..4      Rj 4       4       4       tMRk tNRl tORm tPRn tQ]P<                  P?                  Ro. RO]! Rq4      ]PV                  ]! Rq4      .R]! ^.]P                  ! Rp.RrRs7      RRt7      3. RO]P                  ! Ru^^4      ]PV                  ]P                  ! Ru^^4      .R]! ^.]P                  ! Rp.RrRs7      RRt7      3. RO]P                  ! Ru^^4      ]PV                  ]P                  ! Ru^^4      ]PV                  ]P                  ! Ru^^4      .R]! ^^.]P                  ! RpRv.RrRs7      RRt7      3. RO]P                  ! Ru^^4      ]PV                  ]P                  ! Ru^^4      ]PV                  ]P                  ! Ru^^4      .R]! ^^.]P                  ! RpRv.RrRs7      RRt7      3.4      Rw 4       tTRx tURy tVRz tWR{ tX]P<                  P?                  Rb^ ^
.4      R| 4       tYR} tZR~ t[]P<                  P?                  R	. RO4      ]P<                  P?                  RR4RR^R^/R^R^/./3R5RR^R^/R^R^/./3R2RR^R^/R^R^/./3R3RR^R^/R^R^/./3R1RR^R^/R^R^/.RR
/3.4      R 4       4       t\R t]]P<                  P?                  RR]P                  3RO]P                  3RM]P                  3RL]P                  3R]P                  3RK]P                  3R2]P                  3R3]P                  3R4R 3R5R 3R1]P                  3]P                  ! RN]]]P                  ! R4      R7      .4      R 4       ti]P<                  P?                  RR. ROR^]PJ                  ^^]PJ                  ^^]PJ                  ^.	/R. ROR. RO/.4      ]P<                  P?                  R. RO4      R 4       4       tj]P<                  P?                  R. RO4      R 4       tkR tlR tmR tnR# )    N)ascii_lowercase)iNaT)pandas_dtype)na_value_for_dtype)	DataFrame
MultiIndexSeries	Timestamp
date_rangeisna)get_groupby_method_args)_test_decoratorsdtypeint64float64c                    \        \        P                  ! ^	4      ^,          \        P                  ! ^	4      V R7      p\        P                  ! ^	4      p\        P                  P	                  ^4      P                  V4       VP                  V4      pVP                  R RR7      pV F  w  rE\        V4      ^8X  d   K  Q h	  VP                  \        P                  4      pV^,          ^8X  g   Q hVP                  \        P                  4      p\        P                  ! Wg4       \        P                  ! WcP                  4       4       VP                  4       pVP                  \        P                  4      pV R8X  d   VP                  R4      p\        P                  ! W4       VP!                  R 4      pVP#                  R 4      p	V	^,          ^8X  g   Q h\        P                  ! W4       VP                  V4      p
V
P                  \        P                  4      p\        P                  ! WRR7       VP                  \        P                  \        P$                  .4      pR	p\&        P(                  ! \*        P,                  P.                  VR
7      ;_uu_ 4        VP                  R\        P                  R\        P$                  /4       RRR4       Rp\&        P(                  ! \0        VR
7      ;_uu_ 4        VP                  R 4       RRR4       R#   + '       g   i     LS; i  + '       g   i     R# ; i)	   indexr   c                     V ^,          # )    xs   &t/Users/max/.openclaw/workspace/postharvest/venv/lib/python3.14/site-packages/pandas/tests/groupby/test_reductions.py<lambda>)test_basic_aggregations.<locals>.<lambda>#   s    Q!V    F)
group_keysint32c                 .    W P                  4       ,          # Nsumr   s   &r   r   r   5   s    q557{r   c                 .    W P                  4       ,          # r"   r#   r   s   &r   r   r   6   s    a%%'kr   )check_index_typeznested renamer is not supportedmatchonetwoNzMust produce aggregated valuec                     V ^,          # )   r   r   s   &r   r   r   I   s    AEr   )r	   nparangerandomdefault_rngshufflereindexgroupbylen	aggregatemeanaggtmassert_series_equalr$   astypeapply	transformstdpytestraisespderrorsSpecificationError	Exception)r   datar   groupedkvaggedexpectedresulttransformedvalue_groupedmsgs   &           r   test_basic_aggregationsrN      sA   "))A,!#299Q<uEDIIaLEII!$$U+<<Dll+l>G1v{{  bgg&E8q=={{277#H5+5,,.1[[]F{{266"H??7+6,}}23H##$9:Kq>R;1LL&M$$RWW-F65A rww/0E
,C	ryy333	?	?5"''5"&&9: 
@ *C	y	,	,/* 
-	, 
@	? 
-	,	,s   $2L!L4!L1	4M	valsTFc           	         \        R R.^,          R.^,          ,           RV^,          /4      p\        \        V4      ! V4      pV '       d$   \        \	        V4      4      '       d
   VR8X  d   Rp\        V.^,          R.\
        P                  ! RR.R R7      R7      p\        VP                  R 4      V4      ! V R7      p\        P                  ! We4       R	# )
keyabvalanyFnamecolumnsr   skipnaN)
r   getattrbuiltinsallr   r@   Indexr3   r8   assert_frame_equal)r[   all_boolean_reductionsrO   dfexprI   rJ   s   &&&    r   test_groupby_bool_aggsrd   L   s    & 
EC519uqy0%B	CB (2
3D
9C #d4j//&<&E		E7"((C:E*JH RZZ&(>?vNF&+r   c                  .   \        . RO^\        P                  R.^\        P                  R... ROR7      p \        RR.RR..RR.^^.R	7      pRVP                  n        V P                  R4      P                  4       p\        P                  ! W!4       R
# )   barbazABCrY   TFrX   N)rf   r,   foo)ri   rj   rk   )	r   r-   nanr   rW   r3   rU   r8   r`   rb   rI   rJ   s      r   test_anyrp   o   s    		BFFE*Q,>?
B 
t}%Sz!QH HNNZZ_  "F&+r   c                     \        R R ..RR.R7      pVP                  ^ .4      p\        W 4      ! 4       pVP                  \        P
                  ! ^ .4      4      p\        P                  ! W44       R# )TrR   rl   N)r   r3   r\   set_axisr-   arrayr8   r`   )ra   rb   grp_byrJ   rI   s   &    r    test_bool_aggs_dup_column_labelsru   |   sZ    	T4L>C:	6BZZ_FV46F{{288QC=)H&+r   rD   c                     \        VR R7      p\        W04      ! VR7      p\        V\        P                  ! ^ .4      R R7      pVP	                  . RO4      P                  WR7      p\        P                  ! We4       R# )booleanr   rZ   r   Nr   r   r   )r	   r\   r-   rs   r3   r7   r8   r9   )ra   r[   rD   serexpected_datarI   rJ   s   &&&    r   test_masked_kleene_logicr|      sd     Y
'C C8GMm288QC=	JH[[#''(>'NF6,r   zdtype1,dtype2,exp_col1,exp_col2floatFloat64rx   rw   Int64c           
      $   V P                  R 4      '       d   R\        P                  .MR\        P                  .pVP                  R 4      '       d   R\        P                  .MR\        P                  .p\        R\        P                  ! W@R7      R\        P                  ! WQR7      /4      pVP                  ^^.4      P                  RRR7      p\        RVRV/\        P                  ! ^.4      R7      p\        P                  ! Wx4       R	# )
f      ?col1rx   col2r^   FrZ   r   N)
startswithr-   rn   r@   NAr   rs   r3   r7   r8   r`   )	dtype1dtype2exp_col1exp_col2data1data2rb   rJ   rI   s	   &&&&     r   test_masked_mixed_typesr      s    > $..s33S"&&M#ruuE#..s33S"&&M#ruuE		%.8UV
B ZZA##E%#8F&(FH=RXXqc]SH&+r   c                 0   V! \         P                  ^.VR7      pRpV'       g   V R8X  d   \         P                  pV! V.\        P                  ! ^.4      RR7      pVP	                  ^^.4      P                  WR7      p\        P                  ! Wv4       R# )rf   rx   Tr^   rw   r   rZ   N)r@   r   r-   rs   r3   r7   r8   assert_equal)ra   r   r[   frame_or_seriesobjexpected_resrI   rJ   s   &&&&    r   test_masked_bool_aggs_skipnar      sx    
 255!*E
2CL,5uu~RXXqc])TH[[!Q $$%;$KFOOF%r   zbool_agg_func,data,expected_resrU   r^   c                     V! V\         R 7      pVP                  ^.\        V4      ,          4      P                  V 4      pV! V.\        P
                  ! ^.4      RR7      p\        P                  ! WV4       R# )rx   boolr   N)objectr3   r4   r7   r-   rs   r8   r   )bool_agg_funcrD   r   r   r   rJ   rI   s   &&&&   r   test_object_type_missing_valsr      sY     $f
-C[[!s4y)--m<F~RXXqc]&QHOOF%r   c                    \        \        P                  .\        R 7      p\        P
                  ! \        RR7      ;_uu_ 4        VP                  ^.4      P                  V RR7       RRR4       R#   + '       g   i     R# ; i)rx   z boolean value of NA is ambiguousr'   FrZ   N)	r	   r@   r   r   r>   r?   	TypeErrorr3   r7   )ra   rz   s   & r   'test_object_NA_raises_with_skipna_falser      sU    
"%%
'C	y(J	K	KQC3EB 
L	K	K	Ks   $A33B	c                     V \         J d   R R./MRR/pV ! R/ VBR\        /B p\        VP                  VP                  4      V4      ! 4       pV ! R/ VBR\
        /B p\        P                  ! WE4       R# )rY   rR   rW   r   Nr   )r   r   r\   r3   r   r   r8   r   )r   ra   kwargsr   rJ   rI   s   &&    r   
test_emptyr      sh    #2i#?i#fc]F

1F
1&
1CS[[+-CDFF44t4HOOF%r   howidxminidxmaxc           	         V\         J g   V\        J d   R # RV9   d   \        P                  M\        P                  pV! V4      P
                  pV! V4      P                  p\        R. RORW4WC./VR7      pVP                  R4      p\        W`4      ! 4       p\        R^^ ./\        P                  ! ^^.RVR7      R7      p\        P                  ! Wx4       R # )NintrR   rS   rx   rW   r   r   )r,   rf   rf   r,   )r   r}   r-   iinfofinfominmaxr   r3   r\   r@   r_   r8   r`   )	r   any_real_numpy_dtypeinfo	min_value	max_valuerb   gbrJ   rI   s	   &&       r   test_idxmin_idxmax_extremesr      s     s"&:e&C 44288"((D)*..I)*..I		lC)	!MN"
B 
CBRF	q!fRXXq!f3>RSH &+r   c                 *   \         P                  ! V4      P                  p\         P                  ! V4      P                  p\	        R \        \         P                  ! \        ^^4      ^R7      RR7      R\        \         P                  V\         P                  VV\         P                  V\         P                  .VR7      /4      pVP                  R 4      pV '       gG   V R2p\        P                  ! \        VR7      ;_uu_ 4        \        Wa4      ! V R7       RRR4       R# \        Wa4      ! V R7      p\	        R. RO/\        P                  ! \        ^^4      R RR	7      R
7      p	\         P"                  ! W4       R#   + '       g   i     R# ; i)rR   )repeatsintprx   rS   z with skipna=Falser'   rZ   Nr   r   )rf   r         )r-   r   r   r   r   r	   repeatrangern   r3   r>   r?   
ValueErrorr\   r@   r_   r8   r`   )
r[   r   float_numpy_dtyper   r   rb   r   rM   rJ   rI   s
   &&&       r   "test_idxmin_idxmax_extremes_skipnar     s-    *+//I*+//I			%1+q9HFFFFFFFF	 (	

B$ 
CB'(]]:S11BF+ 2RV,F	l288E!QKc#PH &+ 21s   FF	zfunc, valuesc_intc_floatc_datenumeric_onlyc                 <   \        R . ROR. ROR. ROR. RO/4      p\        P                  ! VR,          4      VR&   VR,          P                  P	                  R4      VR&   VR,          VR,          P
                  ^ ,          ,
          VR&   VR,          P                  P                  R	4      VR
&   VR,          P                  R4      VR&   VR,          P                  R4      VR&   \        VP                  R 4      V 4      ! VR7      p\        V\        P                  ! RR.R R7      R7      pV'       d   VP                  R.R7      pM$VR,          VR&   VR,          VR&   VR,          VR
&   VR,          VR&   VR,          VR&   \        P                  ! WE4       R# )rW   ri   rj   r   r   r   z
US/Pacific	c_date_tzc_timedeltaWc_periodr   	c_Integerr~   
c_Floatingr   rV   r   rl   Nri   ri   rj   rj   rf   r,   r   r   )gGz@g=
ףp=@gRQ @g?)2019201820162017)r   r@   to_datetimedttz_localizeiloc	to_periodr:   r\   r3   r_   dropr8   r`   )funcvaluesr   rb   rJ   rI   s   &&&   r   $test_idxmin_idxmax_returns_int_typesr   2  sp    
(\/6		

B >>"X,/BxLloo11,?B{O8r(|'8'8';;B}\__..s3BzNk((1B{O)}++I6B|RZZ'.LIFrxxc
'HIH==(=4 ( 2"*8"4'1$W-H[%i0H\&+r   z2011-01-15 12:50:28.502376z2011-01-20 12:50:28.593448methodcountr   r   firstlastc                 l   \        R ^^.RV/4      pVP                  R 4      p\        W04      ! 4       pV R8X  d   ^pM:V R8X  d   V^ ,          pM)V R8X  d   V^,          pM\        VR,          V 4      ! 4       p\        RV./\        P                  ! ^.R R7      R7      p\
        P                  ! WF4       R# )rR   rS   r   r   r   rV   r   N)r   r3   r\   r@   r_   r8   r`   )r   rD   rb   rE   rJ   expected_valuerI   s   &&     r   2test_groupby_non_arithmetic_agg_int_like_precisionr   Z  s     
C!Qd+	,BjjoGW%'F	7	a	6	a C&13#/0!38OPH&+r   c                    \        \        V 4      4      p\        R . R	ORVRVRWD.RVRVRWD./V R7      pVP                  R VR7      p\	        Wc4      pV! VR7      pR
. ROR. ROR. ROR. RO/W23,          p	VP
                  V	,          P                  R 4      p
V'       d   V
P                  4       p
\        P                  ! W4       R# )rR   rS         @      @crx   )sortrZ   N)r,   rf   rf   r,   r   r   )r   T)r   rf   r   )r   F)r   rf   r   )r   T)r   rf      )r   F)r   r,   r   )
r   r   r   r3   r\   r   	set_index
sort_indexr8   r`   )any_real_nullable_dtyper   r[   r   na_valuerb   r   r   rJ   ilocsrI   s   &&&&       r   test_first_last_skipnar   x  s     ",/F"GHH	# (C3C(C3C	
 &	
B 
Cd	#BRF6"F 	)		
 
kE wwu~'',H&&(&+r   c                      \        R . ROR. RO/4      p V P                  R 4      R,          P                  4       R,          R8X  g   Q hR# )userri   connectionsl    ,fL N)ri   ri   ri   ri   ri   )ij  i  io  i`  l    @~ )r   r3   r6   )rb   s    r   test_groupby_mean_no_overflowr     sJ    	-I	

B ::fm,113C8<OOOOr   c            	      `   \        R \        P                  ! \        ^
4      4      RRR.^,          /4      p V P	                  R4      R ,          P                  4       p\        \        P                  ! ^^.4      R \        P                  ! RR.RR7      R7      p\        P                  ! W4       R# )timecatri   rj   rV   rW   r   N)
r   r@   to_timedeltar   r3   r6   r	   r_   r8   r9   rb   rJ   rI   s      r   test_mean_on_timedeltar     s    	FBOOE"I6SzA~N	OBZZv&++-F
AfBHHc3Ze4TH 6,r   zvalues, dtype, result_dtypeztimedelta64[ns]
2019-05-09z
2019-05-11z
2019-05-12z
2019-05-13z
2019-05-14z
2019-05-15z
2019-05-16z
2019-05-17z
2019-05-18zdatetime64[ns]c                 J  a \        R V RRR.^,          /4      P                  R V/4      pVP                  R4      R ,          P                  V3R l4      P                  V4      pVP                  R4      R ,          P	                  SR7      p\
        P                  ! We4       R# )rT   r   ri   rj   c                 (   < V P                  SR 7      # rZ   )r6   r   r[   s   &r   r   "test_mean_skipna.<locals>.<lambda>  s    v.r   rZ   N)r   r:   r3   r;   r6   r8   r9   )r   r   result_dtyper[   rb   rI   rJ   s   &&&f   r   test_mean_skipnar     s    : 
6C:>	


 feU^  	

5% 	.	/		 
 ZZu%**&*9F6,r   zvalues, dtypec                 J  a \        R V RRR.^,          /4      P                  R V/4      pVP                  R4      R ,          P                  V3R l4      P                  V4      pVP                  R4      R ,          P	                  SR7      p\
        P                  ! WT4       R# )rT   r   ri   rj   c                 (   < V P                  SR 7      # r   r#   r   s   &r   r   !test_sum_skipna.<locals>.<lambda>  s    f1Er   rZ   N)r   r:   r3   r;   r$   r8   r9   )r   r   r[   rb   rI   rJ   s   &&f   r   test_sum_skipnar     s     
6C:>	


 feU^  	

5% &&'EFMMeT  ZZu%)))8F6,r   c                 &   \        R RR\        P                  RRRRRRR	.
R
RR.^,          /4      P                  R \        /4      pV '       d=   \        RR.\        P                  ! RR.R
R7      R R7      P                  \        4      pMI\        \        P                  R.\        P                  ! RR.R
R7      R R7      P                  \        4      pVP                  R
4      R ,          P                  V R7      p\        P                  ! W24       R# )rT   rR   rS   der   ghijr   ri   rj   aegibdfhjrV   r   rW   rZ   N)r   r-   rn   r:   r   r	   r@   r_   r3   r$   r8   r9   )r[   rb   rI   rJ   s   &   r   test_sum_skipna_objectr	    s    	Cbffc3S#sCHC:>	


 feV_  WRXXsCju%EE

&. 	 VVWRXXsCju%EE

&. 	 ZZu%)))8F6,r   z!func, values, dtype, result_dtypeprodvarr=   semmedianc                 P  a a \        R VRRR.^,          /4      P                  R V/4      pVP                  R4      R ,          P                  V V3R l4      P                  V4      p\	        VP                  R4      R ,          S 4      ! SR7      p\
        P                  ! Wv4       R# )rT   r   ri   rj   c                 *   < \        V S4      ! SR 7      # r   r\   )r   r   r[   s   &r   r   'test_multifunc_skipna.<locals>.<lambda>  s    D)8r   rZ   N)r   r:   r3   r;   r\   r8   r9   )r   r   r   r   r[   rb   rI   rJ   s   f&&&f   r   test_multifunc_skipnar    s    x 
6C:>	


 feU^  	

5% 	8	9		 
 RZZ&u-t4FCF6,r   c                  F   \         P                  P                  ^4      P                  R4      p \         P                  V R&   \        V 4      p\         P                  P                  ^4      P                  ^ ^2RR7      P                  \        4      p\         P                  VR&   VP                  V4      P                  4       pVP                  V4      P                  \         P                  4      p\        P                  ! W44       \        \         P                  P                  ^4      P                  R4      4      pVP                  V4      P                  \         P                  4      pVP                  V4      P                  4       p\        P                  ! WV4       R# )r,     :NNr,   size:NN   N)r  r   )r-   r/   r0   standard_normalrn   r   integersr:   r}   r3   r  r7   	nanmedianr8   r`   )arrrb   labelsrJ   rc   rsxps          r   test_cython_medianr    s   
))


"
2
24
8CvvCH	3BYY""1%..q"4.@GGNF66F4LZZ&&(F
**V

 
 
.C&&	299((+;;IF	GB	F						*B	F		"	"	$B"!r   c                 ~   \        \        P                  P                  ^4      P	                  ^ ^,R4      4      p\        ^ ^7^4      p\        P                  ! V^ ,          V4      pVP                  W0R7      P                  4       pVP                  W0R7      P                  R 4      p\        P                  ! WE4       R# )r,     observedc                 "    V P                  4       # r"   )r  r   s   &r   r   (test_median_empty_bins.<locals>.<lambda>  s
    r   N)r   r-   r/   r0   r  r   r@   cutr3   r  r7   r8   r`   )r#  rb   grpsbinsrJ   rI   s   &     r   test_median_empty_binsr)    s    	299((+44QC@	ABB?D66"Q%DZZZ0779Fzz$z2667KLH&+r   c            	         \        R . ROR. ROR^R.,          /4      p V P                  R 4      P                  4       pRV9   g   Q hV P                  R 4      P                  RR7      pRV9   g   Q hV P                  R 4      P                  4       pRV9   g   Q hV P                  R 4      P                  RR7      pRV9   g   Q hR# )	nniissmamaFr   N)   r/     r0  r   )r   r3   r   r   )aarJ   s     r   test_max_min_non_numericr2    s    	D*D,a6(lS	TBZZ!!#F6>>ZZ!!u!5F6>>ZZ!!#F6>>ZZ!!u!5F6>>r   c           	      8   \        R . ROR. ROR. RO/4      pVP                  4        V '       d'   \        VP                  P                  4      ^8X  g   Q h VP                  R 4      pVR.,          P                  4       p\        P                  ! . R	OR R7      p\        R. R
O/VR7      p\        P                  ! W54       VR.,          P                  4       p\        P                  ! . R	OR R7      p\        R. RO/VR7      p\        P                  ! W54       R# )ri   rj   rk   rV   r   N)rf   rf   r,   r,   r   )rf   rm   r,   rg   F)rR   rS   r   r   r  rf   r,   r   )rS   r   r  )rR   r   r  )r   _consolidate_inplacer4   _mgrblocksr3   r   r@   r_   r8   r`   r   )using_infer_stringrb   r   rJ   eirI   s   &     r   $test_max_min_object_multiple_columnsr:    s    
 
,*	

B '93rww~~!#@@q	CBY]]_F	)#	&B#/r:H&+Y]]_F	)#	&B#/r:H&+r   c                  n   \         P                  ! \        . RO4      RR7      P                  P                  p \        R\        P                  R\        P                  .R. RORV /4      pVP                  RRR7      R,          P                  4       R,          p\         P                  ! \        R R .RR	7      RR7      P                  P                  p\        P                  ! W#4       VP                  R4      R,          P                  4       pRVP                  n        \        P                  ! W#4       R
# )r   z%Y-%m-%d)formatrR   1rS   r   Fas_indexrV   N)r   r   r   )r   rf   rf   )r@   r   r	   r   dater   r-   rn   r3   r   r8   r9   r   rW   )datesrb   rJ   rI   s       r   test_min_date_with_nansrB    s    NN9::b 
 
C"&&#rvv.YUK	LBZZeZ,S1557<F~~l+#6zb  6,ZZ_S!%%'FHNN6,r   c                  H   \        ^\        .4      p \        P                  ! ^^.\        P                  R7      pV P                  V4      pVP                  ^R7      p\        ^^/\        P                  R7      p\        P                  ! W4RR7       VP                  ^R7      p\        ^\        /\        P                  R7      p\        P                  ! W4RR7       VP                  ^R7      p\        ^\        P                  /4      p\        P                  ! W4RR7       R# )rf   rx   	min_countTcheck_exactN)r	   r   r-   rs   r   r3   r   r8   r9   r   rn   )rz   rQ   r   rJ   rI   s        r   test_max_inatrH    s    
!T
C
((Aq6
*C	S	BVVaV Fq!fBHH-H6>VVaV Fq$irxx0H6> VVaV Fq"&&k"H6>r   c            	      t   \        ^\        ^\        ^,           .4      p V P                  . RO4      pVP                  ^R7      p\        ^\        P
                  ^\        P
                  ^\        ^,           /4      pVP                  P                  \        4      Vn        \        P                  ! W#RR7       R# )rf   rD  TrF  N)rf   r,   r   r   )r	   r   r3   r   r-   rn   r   r:   r   r8   r9   )rz   r   rJ   rI   s       r   test_max_inat_not_all_narJ    s     !T1dQh'
(C	\	"BVVaV F q"&&!RVVQq9:H^^**3/HN6>r   r   c                 &   ^^.p\         P                  ! R^RR7      p\        RVRV/4      p\        VP	                  R4      R,          V 4      ! 4       p\         P
                  ! ^^.RR7      p\        W%RR7      p\        P                  ! WF4       R# )	rf   2020YperiodsfreqrR   rS   rV   r  N)	r@   period_ranger   r\   r3   r_   r	   r8   r9   r   groupsrO  rb   rJ   idxrI   s   &      r   $test_groupby_aggregate_period_columnrU    s|     VFoofac:G	Cg.	/BRZZ_S)402F
((Aq6
$Cgs3H6,r   c                    ^^.p\         P                  ! R^RR7      p\        RVRV/4      p\        VP	                  R4      V 4      ! 4       p\         P
                  ! ^^.RR7      p\        RV/VR7      p\        P                  ! WF4       R# )	rf   rL  rM  rN  rR   rS   rV   r   N)r@   rQ  r   r\   r3   r_   r8   r`   rR  s   &      r   #test_groupby_aggregate_period_framerW  "  s{     VFoofac:G	Cg.	/BRZZ_d+-F
((Aq6
$C#ws3H&+r   c            
         \        R . R	OR\        R4      R\        P                  .^,          /4      P	                  \
        4      p V P                  R 4      P                  4       p\        R RR.RRR.R\        P                  \        P                  ./4      P                  R 4      P	                  \
        4      p\        P                  ! W4       \        R . R	OR\        R4      R\        ^4      /4      P	                  \
        4      p V P                  R 4      P                  4       p\        R RR.RRR.R^ ^./4      P                  R 4      P	                  \
        4      p\        P                  ! W4       R# )
rQ   ri   rj   r   abcdr   rR   r   Nr   )r   listr-   rn   r:   r   r3   r   r   r8   r`   r   r   s      r   #test_aggregate_numeric_object_dtyper[  0  s<    
	$fd6lFRVVHqLQ
fVn  ZZ""$FS#Jc
FRVVRVV<LM	
 
5		  &+ 
	$fd6lFE!HM
fVn  ZZ""$F53*fsCj&1a&IJ	5		 
 &+r   c                $    V ^8  d   QhR\         /# )r,   r   )str)r<  s   "r   __annotate__r^  O  s     
, 
, 
,r   c                 z   \        R .RR7      P                  P                  4       p\        RR.RV/4      pVP	                  R4      P                  RV /4      p\        RR ./\        P                  ! R.RR7      R7      pVR,          P                  VP                  4      VR&   \        P                  ! W44       R# )	rS   categoryrx   ri   i  rj   rV   r   N)r	   r   
as_orderedr   r3   r7   r@   r_   r:   r   r8   r`   )r   dsrb   rJ   rI   s   &    r   %test_aggregate_categorical_lost_indexrc  N  s     
Z	(	,	,	7	7	9B	C$b)	*BZZ_  #t-F#uRXXtf3-GHH SM((2HSM&+r   c           	         V R 8X  d   RpMV R8X  d   ^ pMRp\        R^^.RW^,           ./4      pVR,          P                  V 4      VR&   VP                  R4      pVP                  4       pVP                  R,          P                  R4      p\        P                  ! WE4       VP                  4       pVP                  R,          P                  R4      p\        P                  ! Wg4       VP                  ^R7      p\        R\        P                  ./VP                  V R	7      p	\        P                  ! W4       VP                  ^R7      p
\        P                  ! W4       \        R. RORV\        P                  V^,           ./4      pVR,          P                  V 4      VR&   VP                  R4      pVP                  4       p\        P                  ! W4       VP                  4       p\        P                  ! W4       VP                  ^dR7      p\        P                  ! W4       VP                  ^dR7      p\        P                  ! VV	4       R
# )r   l   .D3 rw   r   idts:Nrf   N:rf   NNrD  r   N)r,   r,   r,   )r   r:   r3   r   r   r   r8   r`   r   r@   r   r   )r   rf  rb   r   rJ   rI   res_maxexpected_maxresult2	expected2res_max2df2gb2result3res_max3result4res_max4s   &                r   test_groupby_min_max_nullablerr  \  s    	)		D1a&$!V5	6B$xu%BtH	D	BVVXFwwr{$$T*H&+ffhG772;((.L'0ffqf!G4"%%/uMI'-vvv"H(. T9dRQ,?@
ACD	  'CI
++d
CggiG',wwyH(1ggg$G'-www%H(I.r   c                  h   \         P                  ! ^ .^
,          ^ ^.R7      p \        RV R\         P                  ! \        P
                  ! ^
\        P                  R7      4      /4      pVP                  RRR7      pVP                  4       p\         P                  ! ^ ^.V P                  RR7      p\        R\         P                  ! ^ \         P                  .RR7      /VR	7      p\        P                  ! W54       VP                  4       p^	VP                  R&   \        P                  ! W54       R
# )r   )
categoriesri   rj   rx   Fr"  r   rW   UInt64r   N)r   r   )r@   Categoricalr   rs   r-   r.   uint64r3   r   CategoricalIndexr   r   r8   r`   r   r   )r   rb   r   resrT  rI   s         r   (test_min_max_nullable_uint64_empty_groupr{    s    
..!rq!f
5C	Cc288BIIb		,J#KL	MB	C%	(B
&&(C


q!fCIIC
@C#rxxBEE
(CDCPH#(
&&(CHMM$#(r   c                    \        R \        P                  ! R.\        R4      RR7      R\        P                  ! ^.^^.RR7      RR/4      p\	        VP                  R RR	7      V 4      ! 4       p\        P                  ! RR
.R RR7      p\        R\        P                  ! ^R.^^.RR7      RRR./VR7      p\        P                  ! W$4       R# )r   ri   ABT)rt  orderedr   valueg?Fr"  rj   )rD   rW   r~  Nr   )	r   r@   rw  rZ  r\   r3   ry  r8   r`   )r   rb   rJ   rT  rI   s   &    r    test_groupby_min_max_categoricalr    s     
BNNC5T$ZNBNNA3Aq64HS	

B RZZZ7>@F


C:FD
ICBNNAt9!QNc4[	
 H &+r   c           
         Tp\        R R .RR RR /VR7      P                  R,          p\        VP                  R 4      V 4      ! 4       p\        RR.V\        P
                  ! . VR R7      R7      p\        P                  ! WE4       R# )rR   rS   r   rx   Nr   Nru  )rY   r   r   N)r   r   r\   r3   r@   r_   r8   r`   )r   string_dtype_no_objectr   rb   rJ   rI   s   &&    r   test_min_empty_string_dtyper    sx     #E	C#S#s35	A	F	Fr	JBRZZ_d+-Fc
%rxx%c/RH &+r   rE  test_seriesc                    VR 8X  d   R# T pVR9   d   RV/pMVR9   d   RV/pMVR9   d   / pMRVRV/pT\         P                  rVR9   d   RpVR8X  d   V'       * MRpMVR9   dP   V'       d:   VR8X  d3   VP                  R8X  d"   VP                  \         P                  J d   R	pMR
pVR8X  d   ^M^ pM)V'       d   V^ 8  d   \         P                  pM	VR8X  d   Rp\	        RR.R\         P                  ./VR7      p	V'       d
   V	R,          MT	p
\        W4      pV
P                  V	R,          4      p\        W4      pVR9   dA   RV RV R2p\        P                  ! \        VR7      ;_uu_ 4        V! V/ VB  RRR4       R# VR 9   dK   V'       d   V R2pMV R2p\        P                  ! \        VR7      ;_uu_ 4        V! V/ VB  RRR4       R# V! V/ VB p\         P                  ! R.RVR7      pV'       g   VR8X  d$   V'       g
   VR8X  d   RMRp\        VVVVR7      pM\	        RV/VVR7      p\        P                  ! VV4       R#   + '       g   i     R# ; i  + '       g   i     R# ; i)!corrwithNrU   r[   rE  r  r   Tpyarrowr   r   r$    rR   r   rS   rx   zdtype 'z' does not support operation ''r'   z+ with skipna=True encountered all NA valuesz+ with skipna=False encountered an NA value.r   )r   r   rW   r   )rU   r^   r   r   r6   r  r=   r  )kurt)r   nuniquequantiler  r  )r^   rU   )r   r  r  )	r6   r  r  r
  r  r  skewr=   r  )r   r   )r@   r   storager   r   r   r3   r\   r>   r?   r   r   r_   r	   r8   r   )r  reduction_funcr[   rE  r  r   r   expected_dtyper   rb   r   argsr   r   rM   rJ   r   rW   rI   s   &&&&&              r   test_string_dtype_all_nar    s\    #"E 	 	 F#	8	#y)	J	JFK;%*BEEN''5'>VD	7	7 &(*"%%'$N$N,6Ay1}	5	 	C#beeW-U	;B "S'bC">7D	RW	BR(F 
 
 w<^<LAN]]9C00D#F# 1	/	/#$$OPC#$$OPC]]:S11D#F# 2T$V$FHHcUE2En.&>V+Ct.^RVWc>2%~VOOFH%' 10 21s   4	I	I)I&	)I:	c                     \        R . ROR. ROR\        \        P                  \        P                  R.4      R. RO/4      p V P	                  R4      pVR.,          P                  4       pVR,          P                  4       P                  4       p\        P                  ! W#4       VR,          P                  4       P                  4       '       d   Q hR# )	z
Unnamed: 0DateappOEFileN)z-04-23z-05-06z-05-07)z2013-04-23 00:00:00z2013-05-06 00:00:00z2013-05-07 00:00:00)zlog080001.logzlog.logxlsx)r   r	   r-   rn   r3   r   to_framer8   r`   r   rU   )rb   r   rr  s       r   test_max_nan_bugr    s    	8 
 62662664018		

B 
F	B
F8A
6
!!#A!y~~##%%%%%r   with_nankeysjoejimc                    ^dp^
p\        R^
R7      p\        R\        P                  P	                  ^4      P                  \        \        4      V4      R\        P                  P	                  ^4      P                  Wu4      R\        P                  P	                  ^4      P                  ^ We4      /4      pV'       dc   VP                  R\        /4      pRVP                  R&   RVP                  R&   RVP                  R&   RVP                  R&   RVP                  R&   VP                  4       p	VP                  WBV R7      p
V
R,          P                  VR7      pVP                  WBV R7      p
V
R,          P                  \         P                  VR7      pV'       g   VP#                  R	R
7      pV'       d   \$        P&                  ! WRR7       M\$        P(                  ! WRR7       \$        P(                  ! W4       R# )d   z
2015-08-23)rO  r  r  julieN)r?  r   dropnaT)r   F)check_names):rf   Nr  r  ):r   N%   r  ):   N   r  ):   Nr  r  ):r   Nr  r  )r   r   r-   r/   r0   choicerZ  r   r  r:   r}   loccopyr3   r  r;   r	   reset_indexr8   r9   r`   )r   r  r?  r  r  nmdaysrb   original_dfgrleftrights   &&&&&        r   test_series_groupby_nuniquer  1  s    	A
AlB/D	299((+2243H!L299((+224;RYY**1-66q!?	

B YY'(#|#|!%~!%~!%~'')K	D$	7Bg;f-D	D$	7BwKfnnV<E!!t!,
t>
du="*r   c            
      j   \        R \        R4      R\        R4      R\        R4      /4      p \        R \        R4      R. ROR. RO/4      pV P                  R RR7      P                  4       p\        P
                  ! W!4       \        R4      Vn        R VP                  n        VP                  R R	7      pV P                  R 4      P                  4       p\        P
                  ! W!4       V P                  R
R/4      P                  R 4      P                  RR7      p\        P
                  ! W!4       \        R^.^,          R^.^,          /\        R4      R7      pR VP                  n        V P                  R
R/4      P                  R 4      P                  4       p\        P
                  ! W!4       R# )ri   abbaccrj   abxaccrk   abbacxabcFr>  rl   r   Nr  r   )rf   r,   rf   )rf   rf   r,   )
r   rZ  r3   r  r8   r`   r   rW   r   replacero   s      r   test_nuniquer  V  sX   	Chd8nc4>R	SB#tE{CCKLHZZeZ,446F&+ %[HNHNN}}S})HZZ_$$&F&+ ZZd$,,S1999GF&+ #sQwaS1W5T%[IHHNNZZd$,,S199;F&+r   c                  B   \        . RO. RO. R	O. R
O. RO.. ROR7      p V P                  RR.4      R,          P                  4       p\        P                  ! V P
                  V P                  .4      p\        ^.^,          RVR7      p\        P                  ! W4       R# )r  amountre  rW   rl   r   N)r  rf   Alice)   r,   Bob)i,  r   Charlie)ipr   Dan)r!  r   Edith)r  re  rW   )
r   r3   r  r   from_arraysre  r  r	   r8   r9   )rD   rJ   r   rI   s       r   test_nunique_with_objectr  o  s    	
 )	D \\4*+F3;;=F""DGGT[[#9:EqcAgF%8H6,r   c                      \        R \        R7      p V P                  ^ R7      P                  4       p\        R RR7      p\        P
                  ! W4       R# )rW   r   levelr   N)r	   r   r3   r  r8   r9   )rD   rJ   rI   s      r   test_nunique_with_empty_seriesr    sA    vV,D\\\"**,F61H6,r   c                     \        R \        R4      \        R4      \        R4      .R. RO/4      P                  R 4      p V P                  \        P
                  ! RR7      4      R,          P                  4       pV P                  \        P
                  ! RR7      4      R,          P                  \        P                  4      p\        P                  ! W4       R# )	r   z2016-06-28 09:35:35z2016-06-28 16:09:30z2016-06-28 16:46:28rD   r  )rP  N)r=  23)r   r
   r   r3   r@   Grouperr  r;   r	   r8   r9   testrJ   rI   s      r   test_nunique_with_timegrouperr    s    /0/0/0
 O	
	 i 	 \\"**#./7??AF||BJJC01&9??OH6,r   zkey, data, dropna, expectedr   z
2019-01-01rQ   rV   r  i  yc                     \        R V RV/4      pVP                  R .4      R,          P                  VR7      p\        P                  ! WS4       R# )rQ   rD   r  N)r   r3   r  r8   r9   )rQ   rD   r  rI   rb   rJ   s   &&&&  r   test_nunique_with_NaTr    sI    V 
E3-	.BZZ (000?F6,r   c                     \        . RO\        P                  ! R.RR7      R7      p V P                  . RO4      P	                  4       p\        ^.\
        P                  ! ^ .4      V P                  R7      p\        P                  ! W4       R# )	rf   ri   level_0rV   rl   )r   rY   N)rf   r,   r,   ry   )
r   r@   r_   r3   r  r-   rs   rY   r8   r`   r  s      r   )test_nunique_preserves_column_level_namesr    s^    Y#Y(GHD\\)$,,.F!BHHaSM4<<HH&+r   c                      \        \        R R4      R.R7      p V P                  . RO4      R,          P                  R4      p\	        . RORR7      p\
        P                  ! W4       R# )	z
2008-12-31z
2009-01-02r@  rl   r  rV   N)r   r   rf   )r,   r,   rf   )r   r   r3   r<   r	   r8   r9   r   s      r   $test_nunique_transform_with_datetimer    sO    	:lL9F8	LBZZ	"6*44Y?Fif-H6,r   c                    \        ^.4      P                  R4      pVR,          pVP                  W R7      pVP                  4       pV '       d   \        . VR,          RR7      pM\        ^ .VRR7      p\        P
                  ! WE4       R# )rf   r`  r  r"  r   r   N)r	   r:   r3   r  r8   r9   )r#  r   rz   r   rJ   rI   s   &     r   test_empty_categoricalr    so    
!+

Z
(C
b'C	S	,BZZ\F"CG7;1#S86,r   c                     \        R R\        P                  R.4      p V P                  . RO4      pVP	                  \
        P                  4      pVP                  \
        P                  4      p\        R R\        P                  .\        P                  ! . RO4      R7      p\        P                  ! W$4       \        P                  ! W44       R# )r          @r   r   N)r   rf   r,   r,   r   rf   r,   )r	   r-   rn   r3   r7   r]   r$   r;   rs   r8   r9   )srE   rJ   ri  rI   s        r   test_intercept_builtin_sumr    s    S"&&#&'Aii%G [[&FmmHLL)GsC(0CDH6,7-r   c           	      X   R pRp\         P                  p\        P                  ! WW3W"V.RR7      p\	        R. RORV/4      pVP                  R4      P                  V R7      pV ^ 8X  dX   \	        R\        P                  ! . RORR7      /\        P                  ! . RORR7      R	7      p\        P                  ! Wg4       R
# \	        R\        P                  ! \        P                  .^,          RR7      /\        P                  ! . RORR7      R	7      p\        P                  ! Wg4       R
# )TFrw   rx   ri   rj   rD  r   rV   r   N)rf   rf   r,   r,   r   r   rf   )r   r   r   r4  )r-   rn   r@   rs   r   r3   r$   r_   r8   r`   r   )rE  rS   rR   nadfgrb   rJ   rI   s   &       r   !test_groupby_sum_mincount_booleanr    s    AA	B
((A"!*)
<C	C.S9	:BZZ_  9 5FA~"((9G45((93/
 	f/"((BEE7Q;g67((93/
 	f/r   c            	         \        R . R
OR. R
OR. R
O/RR7      p V P                  R 4      p\        P                  ! . R
OR RR7      pVR,          P	                  ^R7      p\        \        P                  .^,          RVRR7      p\        P                  ! W44       VP	                  ^R7      p\        R\        P                  .^,          R\        P                  .^,          /RVR7      p\        P                  ! W44       R	# )rR   rS   r   r   rx   r   rD  )r   r   rW   )r   r   Nr  )
r   r3   r@   r_   r$   r	   r   r8   r9   r`   )rb   rE   rT  rJ   rI   s        r   0test_groupby_sum_below_mincount_nullable_integerr    s    	CCCC7	SBjjoG
((93g
6CS\*Fruugk#FH6,[[1[%F#w{C"%%1=WTWXH&+r   c            
         \        R . ROR\        P                  ! R4      \        P                  ! R4      \        P                  ! R4      \        P                  ./4      p \        P                  ! ^R7      P	                  R4      pV P                  R 4      pVP                  4       p\        RW./\        P                  ! ^^.R R7      R7      p\        P                  ! W44       VR,          P                  4       p\        P                  ! W4R,          4       VR,          P                  ^R	7      p\        V\        P                  .R
RVP                  R7      p\        P                  ! W44       R# )rR   rS   1D2D3D)r  usrV   r   rD  zm8[us])r   rW   r   N)rf   rf   r,   r,   )r   r@   	TimedeltaNaTas_unitr3   r$   r_   r8   r`   r9   r	   r   )rb   td3r   rz  rI   s        r   #test_groupby_sum_timedelta_with_natr    s   	",,t$bll4&8",,t:LbffU	

B ,,A

&
&t
,C	CB
&&(C#z*"((Aq62LMH#(
S'++-C3.
S'+++
"CsBFFm8#X^^TH3)r   zmethod,datarb   rR   rS   out_typec           	         \        R ^R^/R ^R^/R ^R^/R ^R^/.4      pVP                  P                  V 4      VR&   RV9  d   . VR&   RV9   d   VR,          pMT pVR,          p\        V4      pVP                  P                  V4      VR&   VP                  R RR7       VP	                  R 4      p\        Wq4      ! VR,          !  p\        P                  ! W4       R# )rR   rS   r  r  rb   T)inplaceN)r   rS   r:   r   r3   r\   r8   r`   )	r   r   rD   rb   r  rc   df_outgrpdts	   &&&      r   %test_groupby_non_arithmetic_agg_typesr  3  s     

q#q	CC+c1c1-=QQ?OP
B ddkk% BsGTVT
#
t*Cs^F((//(+F3K
S$'::c?DtF|,A!$r   c                  "    ^ RI Hp V! V R^/VB # )r   )r  ddof)scipy.statsr  )r  r   r  s   *, r   	scipy_semr  [  s    '1'''r   z	op,targopr6   r$   c                 (    V P                   ^ ,          # )r   r   r   s   &r   r   r   l  s    AFF1Ir   c                 (    V P                   R,          # )rf   r  r   s   &r   r   r   m  s    166":r   scipy)marksc                    \        \        P                  P                  ^4      P	                  R4      4      p\        P                  P                  ^4      P                  ^ ^2RR7      P                  \        4      p\        VP                  V4      V 4      ! 4       pV R9   d   R^R^ /M/ pVP                  V4      P                  ! V3/ VB p\        P                  ! WF4       R# )r,   r  r  r  axisN)r=   r  )r   r-   r/   r0   r  r  r:   r}   r\   r3   r7   r8   r`   )optargoprb   r  rJ   r   rI   s   &&     r   test_ops_generalr  a  s    $ 
299((+;;DA	BBYY""1%..q"4.@GGNFRZZ',.F')^';fa#Fzz&!%%f77H&+r   r   functionc                 4   VR 8X  d   RMRp\         P                  ! V.^,          \        R7      p\        P                  ! . RORRR7      p\        RV/VR7      P                  R	4      p\        V RR7      P                  R4      p\        Wa4      ! 4       p\        P                  ! Wu4       VP                  V4      p\        P                  ! Wu4       VP                  V.4      p\        P                  ! RV3.4      Vn        \        P                  ! Wu4       R
# )r  g      ?g      ?rx   rR   r   r   rS   r   r~   Nr4  )r-   rs   r}   r@   r_   r   r:   r3   r\   r8   r`   r7   r   from_tuplesrY   )r   r  outputr  rT  rI   rS  rJ   s   &&      r   ,test_apply_to_nullable_integer_returns_floatr  |  s     %S3F
((F8a<u
-C
((93g
6C#s3/66yAHvW-55c:FV&(F&+ZZ!F&+ZZ
#F!--X.?@H&+r   r  c                   a a \        ^ .4      pVP                  ^ VR7      pS R9   dj   \        VS 4      ! SR7      pVP                  ^ R7      P                  V V3R l4      pV'       d   VP	                  4       p\
        P                  ! WV4       R# \        VS 4      ! 4       pVP                  ^ R7      P                  V 3R l4      pV'       d   VP	                  4       p\
        P                  ! WV4       R# )r   )r  r   rZ   r  c                 *   < \        V S4      ! SR 7      # r   r  )r  r  r[   s   &r   r   3test_regression_allowlist_methods.<locals>.<lambda>  s    '!R.PV:Wr   c                 &   < \        V S4      ! 4       # r"   r  )r  r  s   &r   r   r    s    '!R.:Jr   N)r  r  r$   r6   )r   r3   r\   r;   r   r8   r`   )r  r[   r   framerE   rJ   rI   s   ff&    r   !test_regression_allowlist_methodsr    s    ( qcNEmm!$m/G	,,"%V4==q=)//0WX**,H
f/"%'==q=)//0JK**,H
f/r   c                  ,   ^^.^^).^^.^^%.^^.^^.^^.^^.^^.^^+.^^.^^/.^^.^^X..p \        V RR.RR7      pVP                  R.4      P                  4       P                  4       p\        R^.RR./RR7      p\        P
                  ! W#4       R# )rf   ri   rj   r   )rY   r   l   N+R@rx   N)r   r3   r
  r  r8   r`   )rD   rb   rJ   rI   s       r   "test_groupby_prod_with_int64_dtyper    s     
B	
B	
B	
B	
A	
B	
B	
A	
A	
B	
A	
B	
B	
BD  
4#s7	;BZZ##%113F#sC*<)=>gNH&+r   c                     \         P                  ! R RRR7      p \        V 4      pVR;;,          ^,          uu&   VP                  R4      P	                  4       pV\        ^ 4      ,           VR&   V\        ^ RR7      ,           VR	&   \         P                  VP                  R&   VP                  \        \        ^4      4      R
,          4      pVP                  4       p\         P                  ! R4      p\         P                  ! R4      p\        V^,          WUWV.\        P                  ! ^4      R7      p\        RVRVR	V/4      p\         P"                  ! WH4       R# )z1 Dayi'  ns)rO  unit:NNr   ri   rj   UTC)tzrk   i  z2887 days 11:21:02.326710176z2886 days 00:42:34.664668096r   Nr   )r@   timedelta_ranger	   r  r  r
   r  r   r3   rZ  r   r=   r  r-   r.   r   r8   r`   )	tdirz   rb   r   rJ   td1td4exp_serrI   s	            r   test_groupby_std_datetimeliker    s   


We$
?C
+CHMH	c				!BIaL BsGIaE**BsG&&BGGBK	DqNT)	*BVVXF ,,5
6C
,,5
6CcAgs2"))A,GG#wWc7CDH&+r   c                     \        R \        ^4      R\        ^4      /4      p Rp\        P                  ! \        VR7      ;_uu_ 4        V P                  R .4      P                  R.4       RRR4       \        P                  ! \        VR7      ;_uu_ 4        V P                  R .4      P                  RR7       RRR4       \        P                  ! \        VR7      ;_uu_ 4        V P                  R .4      P                  ^R7       RRR4       R#   + '       g   i     L; i  + '       g   i     Lt; i  + '       g   i     R# ; i)ri   rj   z(numeric_only accepts only Boolean valuesr'   NTruer   )r   r   r>   r?   r   r3   r6   )rb   rM   s     r   %test_mean_numeric_only_validates_boolr"    s     
Cq3a1	2B
4C	z	-	-


C5u% 
. 
z	-	-


C5F3 
. 
z	-	-


C5A. 
.	- 
.	- 
.	- 
.	-	-s$   #D#D&&#D9D#	&D6	9E
	)r   r    r   float32)rm   rg   rh   )rm   r  r  )r  r  r  r4  )rf   r   r   ry   )r   r  r   )r           r$  )r$  r$  r$  )TTT)TFF)FFF)r   r~   rw   )l    m;-Ll    m;-L)r   r   r   r   r   ir   i)r   Int32r~   Float32rw   )r   r   r   r   )r   r   r   )r   r   r   r  r  )r   r   r   r   r  )int8int16r    r   r#  r   rx  )	rf   rf   rf   r,   r,   r,   r   r   r   )rf   rf   r,   r,   r   r   )rf   r,   rf   r,   rf   r,   )r6   r  r  )r$   r
  r   r   r  r6   r  r  r=   r  r  )or]   datetimer   stringr   numpyr-   r>   pandas._libs.tslibsr   pandas.core.dtypes.commonr   pandas.core.dtypes.missingr   pandasr@   r   r   r	   r
   r   r   pandas._testing_testingr8   pandas.tests.groupbyr   pandas.utilr   tdmarkparametrizerN   rn   rd   rp   ru   r   r|   rs   r   r   r   r  r   r   r   r   r   r   r   r   r   r   r   r   r   r	  r  r  r)  r2  r:  rB  rH  rJ  rU  rW  r[  rc  rr  r{  r  r  r  r  slowr  r  r  r  r  r_   r@  r  r  r  r  r  r  r  r  r  r  r6   r  r=   r  r$   r
  r   r   r  param
skip_if_nor  r  r  r  r  r"  r   r   r   <module>r;     s]     "   $ 2 9    8 . "JK-+ L-+` 
	 $,%$,"
,, 
	ruu	u	ruud	ruue

-

- % HHdV4(HHbeeWI.		
 HHbeeWI.HHdV4(		
 HHbeeWI.HHbeeWI.		
 HHbeeWI.HHbeeWI.		
':
,;:
, "AB& C& %	'	266"D)	&	rvv&.	&&C& 8 45, 6,( 8 45!, 6!,H 	GaVYA1a&IJ	GaVYA1a&IJ $7, 8,@ 
 2323	
 	/	 #KL, M	,& & 12, 3,:P- !
Q1aAq!	,iC
Qq!Q1a	+Y	B
Qq!Q1a	+Wi@
Q1aAq!	,.?ARSNN FF         !	
6-76-& 
Q1aAq!	,i8
Qq!Q1a	+Y7
Qq!Q1a	+W5
Q1aAq!	,.?@	--"-( 'v	!Q2661aAr15y)Lv	!RAq"%%Aq!4iKv 
!Q2q!QBEE15wHv 
"&&B	95	v
 
"%%2y)4v 
"%%2w0v 
B1bffaAq!4iKv 
Aq"aAr1bee4iKv 
B1aQq!4gyIv 
2y)4v 
"i3v 
"gy1v 
Aq"aAr26615y)Lv 
B1aQq!4iKv 
Aq"aAr1bee4gyIv  
2y)4!v" 
"i3#v$ 
"gy1%v& 
B1aQ15y)L'v( 
Aq"aAr255!4iK)v* 
B1aQ1bee4gyI+v, 
2y)4-v. 
"i3/v0 
"gy11v2 
B1aQ15y)L3v4 
Aq"aAr255!4iK5v6 
B1aQ1bee4gwG7v: 2661aAq!Q/		
9vF NN FF         #	
Evj 
2y)4kvl 
"i3mvn 
"gw/ovp 
B1aQ15y)Lqvr 
Aq"aAr255!4iKsvt 
B1aQ1bee4gwGuvx 2661aAq!Q/		
wvD NN FF         #	
Cvh 
2y)4ivj 
"i3kvl 
"gw/mvn 
Ar1aB2661a8)YOovp 
Aq!RAq"beeQ7INqvr 
Ar1aB1a7)Lsvv 2661aAq!Q/		
uvB NN FF         #	
Avf 
BFF8b=)Y7gvh 
BEE7R<I6ivj 
BEE7R<)4kvyt-uyt-&"$,",<-$?(? %0
- 1
- %0
, 1
,,< %0
, 1
, "UV,/ W,/^)" !@A, B,, %0, 1, q!f-u6X& 7 .X&v&( dE]35'E5>!:;+ < 4 +D,2-&--" ! |$bffi.EFA3bhhu59G		
 WWT1a "&&"''$1*=>A3bhhu59G		
 &a#a#a# Aq63*5!AO	
 &a#a#a# Aq63*5!AO	
3%(R-S(R-,-
-
. q"g.0 /0,,*0 P 	433*S!S!,<=>?	$#q#q)CC+;<=>	aa(33*:;<=	aa(33*:;<=	433*S!S!,<=z7ST	%	%6( 		299							%&	%&	"''UIR]]7-CD",#",  ,!RUUAq"%%Aruua8	
 
 #'9:	 %>?, @	,(  0! 0.,0,6/r   