+
    xȇiF                        ^ RI H t  ^ RIt^ RIt^ RIHt ^ RIHt ^ RIt	^ RIH
t
HtHtHtHtHtHtHt ^ RIHt ^ RIHt ^ RIHt ^ RIHt ^ R	IHt ^ R
IHt ^ RIH t  ]PB                  ! . R?OR7      R 4       t"]PF                  PI                  RRR.4      ]PF                  PI                  R]! RRRR7      ]! ] ! R^^4      ] ! R^^
4      RR7      .4      R 4       4       t%]PF                  PI                  R]! RRRR7      ]! ] ! R^^4      ] ! R^^
4      RR7      .4      R 4       t&]PF                  PI                  R]! RRRR7      ]! ] ! R^^4      ] ! R^^4      RR7      ]! ] ! R^^4      ] ! R^^4      RR7      .4      R 4       t'R t(R t)R t*R t+]PF                  PI                  R]! . RRR 7      ]! . RR!7      ]! . RR!7      .4      ]PF                  PI                  R. R@O4      R$ 4       4       t,]PF                  PI                  R%^ ^.4      R& 4       t-]PF                  PI                  R]P\                  ! R"]PF                  P_                  R'R(7      R)7      RR#.4      R* 4       t0]PF                  PI                  R]! . RRR 7      ]! . RR!7      ]! . RR!7      .4      ]PF                  PI                  R. R@O4      ]PF                  PI                  R+R,R-.4      R. 4       4       4       t1]PF                  PI                  R]! . 4      ]! . 4      ]! . RR7      .4      ]PF                  PI                  R. R@O4      R/ 4       4       t2]PF                  PI                  R]! . 4      ]! . 4      ]! . RR7      .4      ]PF                  PI                  R. R@O4      R0 4       4       t3]PF                  PI                  R]! . 4      ]! . 4      ]! . RR7      .4      ]PF                  PI                  R. R@O4      R1 4       4       t4]PF                  PI                  R]! . 4      ]! . 4      .4      ]PF                  PI                  RRR#.4      ]PF                  PI                  R2. RAO4      R3 4       4       4       t5]PF                  PI                  R]! . R4RR 7      ]! . RR!7      ]! . RR!7      .4      ]PF                  PI                  R5]6]7]8R6.4      R7 4       4       t9]PF                  PI                  R]! . RRR 7      ]! . RR!7      ]! . RR!7      .4      ]PF                  PI                  R. R@O4      R8 4       4       t:]PF                  PI                  R]! RRRR7      ]! ] ! R^^4      ] ! R^^
4      RR7      ]! ] ! R^^4      ] ! R^^
4      RR7      .4      R9 4       t;]PF                  PI                  R]! RRRR7      ]! ] ! R^^4      ] ! R^^
4      RR7      ]! ] ! R^^4      ] ! R^^
4      RR7      .4      R: 4       t<]PF                  PI                  R;R<R=.4      R> 4       t=R# )B    )datetimeN)Pandas4Warning)is_extension_array_dtype)	DataFrameDatetimeIndexIndex
MultiIndexNaTPeriodIndexSeriesTimedeltaIndex)	DataError)Grouper)
date_range)period_range)timedelta_range)_asfreq_compatindex)paramsc                     V P                   # N)param)requests   &o/Users/max/.openclaw/workspace/postharvest/venv/lib/python3.14/site-packages/pandas/tests/resample/test_base.py#all_1d_no_arg_interpolation_methodsr      s    ( ==    freq2D1hz1 dayz10 dayDr     c                 h   V ! \        \        V4      4      VR 7      p\        V\        4      '       d   \        M\
        pVP                  V4      P                  4       pV! VP                  ^ ,          VP                  R,          VR7      pVP                  V4      p\        P                  ! WW4       R# )r   r!   N)rangelen
isinstancer   r   r   resampleasfreqr   reindextmassert_almost_equal)frame_or_seriesr   r   obj	idx_rangeresult	new_indexexpecteds   &&&     r   test_asfreqr4   5   s}     %E
+5
9C(>>
OI\\$&&(F#))A,		"DAI{{9%H6,r   c                    \        \        \        V 4      4      V R R7      p\        V \        4      '       d   \
        M\        pVP                  R4      P                  4       pV! VP                  ^ ,          VP                  R	,          RR7      pVP                  V4      p\        P                  ! W54       VP                  R4      P                  R4      pRVP                  ^&   VP                  R4      P                  RR7      pV! VP                  ^ ,          VP                  R	,          RR7      pVP                  VRR7      p\        P                   ! W54       R# )
a)r   namer   r!   floatvalueN      @)
fill_valuer%   )r   r&   r'   r(   r   r   r   r)   r*   r   r+   r,   assert_series_equalastypeto_frameilocassert_frame_equal)r   serr0   r1   r2   r3   frames   &      r   test_asfreq_fill_valuerC   G   s    s5z"%c
:C(>>
OI\\$&&(F#))A,		"DAI{{9%H6, JJw((1EEJJqM^^D!((C(8F%++a.%++b/EI}}Y3}7H&+r   z3 dayc                    \        \        \        V 4      4      V R 7      pVP                  R4      P	                  4       P                  4       pVP                  R4      P                  4       p\        P                  ! W#4       R# )r$   1minN)r   r&   r'   r)   r*   interpolater,   r@   )r   dfr1   r3   s   &   r   test_resample_interpolaterH   b   s^     
5U$E	2B[[ '')557F{{6"..0H&+r   c            	         \        \        R ^^4      \        R ^^
4      RR7      p \        \        \	        V 4      4      V R7      pVP                  R4      pRp\        P                  ! \        VR7      ;_uu_ 4        VP                  RR7       R	R	R	4       R
p\        P                  ! \        VR7      ;_uu_ 4        \        P                  ! \        VR7      ;_uu_ 4        VP                  RR7       R	R	R	4       R	R	R	4       R	#   + '       g   i     L; i  + '       g   i     L-; i  + '       g   i     R	# ; i)r"   r    r!   r$   rE   z;The 'inplace' keyword in DatetimeIndexResampler.interpolatematchF)inplaceNz0Cannot interpolate inplace on a resampled objectT)r   r   r   r&   r'   r)   r,   assert_produces_warningr   rF   pytestraises
ValueError)dtirG   rsmsgmsg2s        r   ,test_resample_interpolate_inplace_deprecatedrU   r   s    
XdAq)8D!R+@s
KC	5S?#	.B	V	B
GC		#	#N#	>	>
u% 
? >D	z	.	.''cBBNN4N( C 
/	.	 
?	>
 CB 
/	.	.s0   ;D<%D,!D	4D,D	D)$D,,D=	c                 6   \         P                  ! R 4       \        R^RR7      p\        \        P
                  ! R4      V4      pT pVP                  R4      P                  V4      pVR8X  dL   \        P                  ! \        P
                  ! RR4      ^4      \        P                  ! RR.^4      ,           pMVR	8X  d1   \        P                  ! \        P
                  ! RR4      ^4      ^R pMSVR
8X  d.   \        P                  ! \        P
                  ! RR4      ^4      pMR\        P
                  ! RRR4      ,           p\        P                  ! V^ \        P                  4      p\        R^	RR7      p\        WQR7      p\        P                  ! WF4       R# )scipyz2000-01-01 00:01:002h)periodsr   g      @r   linear        r:   nearestzerogoaxw?g      ?2000-01-01 00:00:00r$   NgUUUUUU?gUUUUUU?r%   )rN   importorskipr   r   nparanger)   rF   repeattileinsertnanr,   r<   )r   r   rA   methodr1   valuesr3   s   &      r   3test_resample_interpolate_regular_sampling_off_gridrh      s+     ,adCE
3
'C0F\\$++F3F299S#.2RWWeU^Q5OO	9	299S#.21R8	6	299S#.2BIIc344YYvq"&&)F,adCEf*H6,r   c                    \         P                  ! R 4       \        \        P                  ! RR^4      \        . RO4      R7      pVP                  R4      P                  V 4      p\        P                  ! VP                  ^ ,          4      '       g   Q hVP                  R,          P                  4       P                  4       '       d   Q hR# )rW   r[   g      ?r$   5s:   NNN)z2000-01-01 00:00:03z2000-01-01 00:00:22z2000-01-01 00:00:24z2000-01-01 00:00:31z2000-01-01 00:00:39)rN   r_   r   r`   linspacer   r)   rF   isnanr?   isnaany)r   rA   ser_resampleds   &  r   ,test_resample_interpolate_irregular_samplingrq      s    
 

Ca 
C LL&223VWM 88M&&q)****!!"%**,0022222r   c                      \        4       p R p\        P                  ! \        VR7      ;_uu_ 4        V P	                  R4       RRR4       R#   + '       g   i     R# ; i)zaOnly valid with DatetimeIndex, TimedeltaIndex or PeriodIndex, but got an instance of 'RangeIndex'rJ   YEN)r   rN   rO   	TypeErrorr)   )xprS   s     r   %test_raises_on_non_datetimelike_indexrv      sA    	B	.  
y	,	,
D 
-	,	,	,s   AA	r6   )r   r7   )r7   MEhc                    \        V\        R 7      pV R8X  dc   \        VP                  \        4      '       dC   Rp\
        P                  ! \        VR7      ;_uu_ 4        VP                  V 4       RRR4       R# V R8X  d#   \        VP                  \        4      '       d   Rp VP                  V 4      p\        WR4      ! 4       pVR8X  dV   \        . VP                  R,          . ROR7      p\        VP                  V 4      Vn        \        P                  ! WgR	R
7       MCVP                  4       p\        VP                  V 4      Vn        \        P                   ! WgR	R
7       \        P"                  ! VP                  VP                  4       VP                  P$                  VP                  P$                  8X  g   Q hR#   + '       g   i     R# ; i)r   dtyperw   aResampling on a TimedeltaIndex requires fixed-duration `freq`, e.g. '24h' or '3D', not <MonthEnd>rJ   NMohlcNr   Nr   columnsFcheck_dtypeopenhighlowclose)r   r8   r(   r   r   rN   rO   rP   r)   r   getattrr   r   r,   r@   copyr<   assert_index_equalr   r   r   resample_methodrA   rS   rR   r1   r3   s   &&&     r   test_resample_empty_seriesr      sH    uE
*Ct|
399n==1 	 ]]:S11LL 2	*SYY<<	d	BR)+F& ciim-M
 (		48
fEB88:'		48
vUC&,,7<< 3 3333+ 21s   GG		min_countc                 4   T p\        \        P                  \        . R	O4      VR7      pVP	                  R4      pVP                  VR7      pV^ 8X  d   RM\        P                  p\        RR^RR7      p\        WgVR7      p\        P                  ! WX4       R# )
r^   rz   20s)r    z
2000-01-01us)startr   rY   unitN)r^   z2000-01-01 00:00:10z2000-01-01 00:00:20z2000-01-01 00:00:30)	r   pdNAr   r)   sumr   r,   r<   )	string_dtype_no_objectr   r{   rA   rR   r1   r9   r   r3   s	   &&       r   test_resample_empty_sum_stringr      s     #E


 C 
e	BVViV(Fq.BbeeE\qtLEe6H6,r   zDon't know why this fails)reason)marksc                 :   \        \        ^4      \        \        .^,          V R7      R7      pVP	                  V 4      p\        W14      ! 4       pVR8X  d;   \        . VP                  R,          . R	OR7      p\        P                  ! WERR7       M/VR,          P                  4       p\        P                  ! WERR7       \        P                  ! VP                  VP                  4       VP                  P                  VP                  P                  8X  g   Q hR# )
   r!   r$   r~   r   r   Fr   Nr   )r   r&   r   r
   r)   r   r   r   r,   r@   r   r<   r   r   )r   r   rA   rR   r1   r3   s   &&    r   test_resample_nat_index_seriesr     s     qcUQYT!B
CC	d	BR)+F& ciim-M
 	fEBr7<<>
vUC&,,7<< 3 3333r   r   countsizec                 4   \        VR 7      pV R8X  dc   \        VP                  \        4      '       dC   Rp\        P
                  ! \        VR7      ;_uu_ 4        VP                  V 4       RRR4       R# V R8X  d#   \        VP                  \        4      '       d   Rp VP                  V 4      p\        WR4      ! 4       p\        VP                  V 4      p\        . RWP                  R7      p\        P                  ! Wg4       R#   + '       g   i     R# ; i)r$   rw   r|   rJ   Nr}   int64)r{   r   r7   )r   r(   r   r   rN   rO   rP   r)   r   r   r   r7   r,   r<   r   s   &&&     r    test_resample_count_empty_seriesr     s     u
Ct|
399n==1 	 ]]:S11LL 2	*SYY<<	d	BR)+F399d+Ebu88DH6, 21s   DD	c                    \        V R 7      pVR8X  de   \        VP                  \        4      '       dE   Rp\        P
                  ! \        VR7      ;_uu_ 4        VP                  VRR7       RRR4       R# VR8X  d#   \        VP                  \        4      '       d   RpVP                  VRR7      p\        WR4      ! 4       pVR8X  do   \        P                  ! VP                  . RO.4      p\        . VP                  R	,          V\        P                  R
7      p\        VP                  V4      Vn        M3VR8w  d   VP!                  4       pM\#        . \        P$                  R7      p\        VP                  V4      Vn        \&        P(                  ! VP                  VP                  4       VP                  P*                  VP                  P*                  8X  g   Q h\&        P,                  ! Wh4       R#   + '       g   i     R# ; i)r$   rw   r|   rJ   F
group_keysNr}   r~   r   )r   r   r{   r   r{   r   )r   r(   r   r   rN   rO   rP   r)   r   r   r	   from_productr   r`   float64r   r   r   r   r,   r   r   r-   )	r   r   r   rG   rS   rR   r1   mir3   s	   &&&      r   test_resample_empty_dataframer   A  sp    
	Bt|
288^<<1 	 ]]:S11KKK/ 2	*RXX{;;	Te	,BR)+F& $$bjj2R%STRrxx|RrzzR'$7	F	"779 "BHH-#BHHd3HN&,,7<< 3 33336,1 21s   G;;H	c           	      ^   \        V\        R .\        R7      R7      pV R8X  dc   \        VP                  \
        4      '       dC   Rp\        P                  ! \        VR7      ;_uu_ 4        VP                  V 4       RRR4       R# V R8X  d#   \        VP                  \        4      '       d   Rp VP                  V 4      P                  4       p\        VP                  V 4      p\        RV\        R .\        R7      R	7      p\        P                  ! WE4       R#   + '       g   i     R# ; i)
r6   r   r   rw   r|   rJ   Nr}   r   )r{   r   r   )r   r   objectr(   r   r   rN   rO   rP   r)   r   r   r   r,   r@   r   r   empty_frame_dtirS   r1   r3   s   &&    r   #test_resample_count_empty_dataframer   k  s      eUC55OPOt|
?#8#8.II1 	 ]]:S11$$T* 2	*_%:%:KHH%%d+113F?00$7EweUC5PV=WXH&+ 21s   +DD,	c                 >   \        V\        R .\        R7      R7      pV R8X  dc   \        VP                  \
        4      '       dC   Rp\        P                  ! \        VR7      ;_uu_ 4        VP                  V 4       RRR4       R# V R8X  d#   \        VP                  \        4      '       d   Rp VP                  V 4      P                  4       p\        VP                  V 4      p\        . RVR	7      p\        P                  ! WE4       R#   + '       g   i     R# ; i)
r6   r   r   rw   r|   rJ   Nr}   r   )r{   r   )r   r   r   r(   r   r   rN   rO   rP   r)   r   r   r   r   r,   r<   r   s   &&    r   "test_resample_size_empty_dataframer     s      eUC55OPOt|
?#8#8.II1 	 ]]:S11$$T* 2	*_%:%:KHH%%d+002F?00$7Ebu5H6, 21s   +DD	rf   c                     \        V R 7      pVP                  V4      pVP                  \        WB4      4      p\	        VP
                  V4      p\        . VR 7      p\        P                  ! WW4       R# )r$   N)r   r)   applyr   r   r   r,   r@   )r   r   rf   r   rR   r1   expected_indexr3   s   &&&     r   #test_resample_apply_empty_dataframer     s]      e,O		!	!$	'BXXgb)*F#O$9$94@N>2H&+r   r}   r{   zdatetime64[ns]c                     \        . W4      pVP                  R RR7      p \        WB4      ! 4        R#   \         d     R# i ; i)r    Fr   N)r   r)   r   r   )r   r{   r   empty_series_dtirR   s   &&&  r   test_resample_empty_dtypesr     sJ     b%/		"	"35	"	9B$&  	s   3 AAc                     \        V R 7      pVR8X  dc   \        VP                  \        4      '       dC   Rp\        P
                  ! \        VR7      ;_uu_ 4        VP                  V4       RRR4       R# VR8X  d#   \        VP                  \        4      '       d   RpVP                  VRR7      P                  R 4      pVP                  V4      P                  R	4      p\        P                  ! WERR
7       R#   + '       g   i     R# ; i)r$   rw   r|   rJ   Nr}   Fr   c                     ^# )rk    )xs   &r   <lambda>,test_apply_to_empty_series.<locals>.<lambda>  s    !r   r   r   )r   r(   r   r   rN   rO   rP   r)   r   r   r,   r<   )r   r   rA   rS   r1   r3   s   &&    r   test_apply_to_empty_seriesr     s     u
Ct|
399n==1 	 ]]:S11LL 2	*SYY<<\\$5\177DF||D!''.H6? 21s   C<<D	c                    \        \        \        V 4      4      V R 7      pRp\        VRR7      pVP	                  V4      pVP                  V4      p\        WT4       F(  w  w  rgw  rWh8X  g   Q h\        P                  ! Wy4       K*  	  R# )r$   rx   r   )r   
conventionN)	r   r&   r'   r   groupbyr)   zipr,   r<   )
r   seriesr   tggrouped	resampledrkrvgkgvs
   &         r   test_resampler_is_iterabler     su     E#e*%U3FD	dw	/BnnR G%I!)5(2xx
r& 6r   c                 4  a \        \        \        V 4      4      V R 7      pRoRpVP                  V4      P	                  S4      pVP                  V4      P                  V3R l4      P                  VP                  4      p\        P                  ! W44       R# )r$   g      ?rx   c                 &   < V P                  S4      # r   )quantile)r   qs   &r   r   (test_resample_quantile.<locals>.<lambda>  s    

1r   N)
r   r&   r'   r)   r   aggrenamer7   r,   r<   )r   rA   r   r1   r3   r   s   &    @r   test_resample_quantiler     st     s5z"%
0CAD\\$((+F||D!%%&=>EEchhOH6,r   howfirstlastc                 :   \        V 4      '       d"   \        V R 7      P                  P                  pM\        P
                  p\        R. RORVRVR.RVRVR./\        R^RRR	7      V R
7      pVP                  R4      p\        WR4      pV! VR7      p\        P                  ! R4      P                  R4      pVP                  VP                  ^ ,          V.,          4      p	\        W4      ! VR7      p
RV
P                  n        \"        P$                  ! Wz4       R# )r   r6   bg      @r:   cz
2020-01-01r    ns)rY   r   r   rz   rw   )skipnaz
2020-01-31N)   rk   rk   r   )r   r   r{   na_valuer`   re   r   r   r)   r   r   to_datetimeas_unitr   shaper   r   r,   r@   )any_real_nullable_dtyper   r   r   rG   rR   rf   r1   tsgbr3   s   &&&        r   test_first_last_skipnar     s       788 78>>GG66	(C3/(C3/	

 qsF%
B 
T	BRF6"F		%	-	-d	3B	BHHQK2$&	'Brv.HHNN&+r   )rZ   timer   rg   r\   r]   slinear	quadraticcubicbarycentrickroghfrom_derivativespiecewise_polynomialpchipakima)rw   r    rx   )ffillbfillr\   r*   rF   mean)>r   numpyr`   rN   pandas.errorsr   pandas.core.dtypes.commonr   pandasr   r   r   r   r	   r
   r   r   r   pandas._testing_testingr,   pandas.core.groupby.groupbyr   pandas.core.groupby.grouperr   pandas.core.indexes.datetimesr   pandas.core.indexes.periodr   pandas.core.indexes.timedeltasr   pandas.core.resampler   fixturer   markparametrizer4   rC   rH   rU   rh   rq   rv   r   r   r   xfailr   r   r   r   r   r   r8   intr   r   r   r   r   r   r   r   r   <module>r     s      ( > 	 	 	  1 / 4 3 : / &'& $.48D!Q'$2)>SI- /- 48D!Q'$2)>SI,,( s38D!Q'$1)=CHXdAq)8D!Q+?cJ,,) -232 BSs+bs#r$ !124 34B q!f-- .-0 
T!2!2:U!2!VW44( BSs+bs#r$ !12*Wf,=>- ? 3-2 mB!3[#5NO !12!- 3!-L mB!3[#5NO !12, 3,0 mB!3[#5NO !12- 3-2 =#4nR6H"IJ#s,L
, - K

, BSs+bs#r$ 5#v7G"HI J BSs+bs#r$ !12@ 3@* 48D!Q'$2)>SIXdAq)8D!R+@sK	'	' 48D!Q'$2)>SIXdAq)8D!R+@sK-- & 12, 3,r   