+
    xȇiJ                     j    ^ RI H t  ^ RIt^ RIHt ^ RIt^ RIHtHtH	t	H
t
Ht ^ RIHt  ! R R4      tR# )    )datetimeN)Pandas4Warning)PeriodSeries
date_rangeperiod_rangeto_datetimec                   \   a  ] tR t^t o R tR tR tR tR tR t	R t
R tR	 tR
 tRtV tR# )TestCombineFirstc           
        \        R RRR7      p\        \        R4      \        R4      RR7      pW3 F  p\        ^\        P
                  \        P
                  ^^\        P
                  ^.VR7      p\        . R
OVR7      pVP                  V4      p\        . ROV\        P                  R7      p\        P                  ! Wg4       K  	  R	# )z
1950-01-31z
1950-07-31ME)startendfreqz1950-1z1950-7Mindexr   dtypeN)	   r   r   r   r   r   r   )   r   r         r      )
r   r   r   r   npnancombine_firstfloat64tmassert_series_equal)selfdidxpidxidxabresultexpecteds   &       ~/Users/max/.openclaw/workspace/postharvest/venv/lib/python3.14/site-packages/pandas/tests/series/methods/test_combine_first.py"test_combine_first_period_datetime3TestCombineFirst.test_combine_first_period_datetime   s    ,TJ&"2x8HsS<C2662661a;3GA,C8A__Q'F33bjjQH""64      c                p    VP                  VR ,          4      pVP                  VP                  8X  g   Q hR# ):Nr   NN)r   name)r!   datetime_seriesr'   s   && r)   test_combine_first_name(TestCombineFirst.test_combine_first_name    s/     ..r/BC{{o22222r,   c                   \         P                  ! ^\         P                  R7      p\        V\         P                  ! ^\         P                  R7      R7      pV^,          p\         P
                  VR&   VP                  V4      p\        P                  ! WS4       VP                  V4      p\         P                  ! V4      P                  4       '       g   Q h\        P                  ! VR,          VR,          4       \        P                  ! VR,          VR,          4       \        P                  ! \        ^4       Uu. uF  p\        V4      NK  	  up4      p\        \         P                  P!                  ^4      P#                  ^4      VR7      p\        \        ^
4       Uu. uF  p\        V4      NK  	  upVR,          \$        R7      p	V	P                  V4      p\        P                  ! WP&                  VR,          ,          4       \        P                  ! VR,          P)                  \$        4      VP&                  VR,          ,          4       \        . RO. R	OR7      p
\        . . \$        R7      pV
P                  V4      pV'       g!   V
P*                  P)                  R4      V
n        \        P                  ! WP)                  \$        4      4       R# u upi u upi )
   r   r   :NN   :r   Nr5   r   ON)      ?r5      )r   r   r5   )r   aranger   r   int64r   r   r   r    isfiniteallpdIndexrangestrrandomdefault_rngstandard_normalobjectlocastyper   )r!   using_infer_stringvaluesseriesseries_copycombinedir   floatsstringsseremptyr'   s   &&           r)   test_combine_first#TestCombineFirst.test_combine_first$   s   2RZZ0bii"((&CDqj66C ''4
x0 ,,V4{{8$((****
x}fSk:
x~{4/@A %)4)Q#a&)45		--a0@@DER%)4)Q#a&)4E#JfU((0
wU3Z(@A
vd|226:HLLt<UV [	2r62""5)!		((-CI
vzz&'9: 54s   ?K%K"c                   \        \        R \        P                  .4      4      P                  P                  V4      p\        \        \        P                  R.4      4      P                  P                  V4      pVP                  V4      p\        \        R R.4      4      P                  P                  V4      p\        P                  ! WE4       R# )20102011N)	r	   r   r   r   dtas_unitr   r   r    )r!   units0s1rsxps   &&    r)   test_combine_first_dt64(TestCombineFirst.test_combine_first_dt64I   s     01255==dC 01255==dCb! 01255==dC
r&r,   c                
   \        \        R \        P                  .4      4      P                  P                  V4      p\        \        P                  R.4      pRp\        P                  ! \        VR7      ;_uu_ 4        VP                  V4      pRRR4       \        \        R^^4      R.RV R2R7      pVR
9   d   VP                  P                  R	4      p\        P                  ! XV4       R#   + '       g   i     Li; i)rT   rU   z1Silently casting non-datetime 'other' to datetime)matchNi  zdatetime64[]r4   us)sms)r	   r   r   r   rV   rW   r   assert_produces_warningr   r   r   r    )r!   rX   rY   rZ   msgr[   r\   s   &&     r)   +test_combine_first_dt64_casting_deprecation<TestCombineFirst.test_combine_first_dt64_casting_deprecationP   s     01255==dCRVVV$%A''cBB!!"%B C XdAq)62KvQ:OP;t$B
r2& CBs   ?C22D	c                <   \        \        P                  ! . ROVR7      RR7      p\        \        P                  ! . ROVR7      . R	ORR7      pVP                  V4      p\        P                  ! . R
OVR7      p\        VRR7      p\        P
                  ! Wd4       R# )20150101tzser1)r.   ser2)r   r.   N)rj   2015010220150103)201605142016051520160516)r5   r8   r   )rj   ro   rp   rr   rs   )r   r=   DatetimeIndexr   r   r    )r!   tz_naive_fixturerm   rn   r'   exp_valsexps   &&     r)   test_combine_first_dt_tz_values0TestCombineFirst.test_combine_first_dt_tz_values_   s    AFVW
 AFVW

 ##D)##H
 XF+
s+r,   c           	         \        \        R ^^^4      \        R ^^^
4      RRR7      p\        \        ^
4      VR7      p\        VR7      pVP	                  V4      p\
        P                  ! WBP                  \        P                  4      4       R# )i  hzEurope/Rome)r   rl   r   N)
r   r   r   r?   r   r   r    rF   r   r   )r!   
time_indexrZ   s2r'   s   &    r)   4test_combine_first_timezone_series_with_empty_seriesETestCombineFirst.test_combine_first_timezone_series_with_empty_seriesq   su    T1a#T1a$	

 E"IZ0*%!!"%
vyy'<=r,   c                    \        R R.4      p\        . RO4      pVP                  V4      p\        . RO4      p\        P                  ! W44       R# )   +YNJ9    M,YNJ9 N)r   r5   r8   )r   r   r8   r   r   r   r    r!   rZ   r}   r'   r(   s   &    r)   "test_combine_first_preserves_dtype3TestCombineFirst.test_combine_first_preserves_dtype~   sF    (*=>?I!!"%GH
v0r,   c                   \        \        P                  ! R RR7      R/4      p\        \        P                  ! RRR7      R\        P                  ! RRR7      R/4      pVP                  V4      p\        RR.\        P                  ! \        P                  ! R	RR7      \        P                  ! R
RR7      .RR7      R7      p\
        P                  ! W44       R# )z
2019-05-01UTCrk   r7   z2019-05-01 01:00:00+0100zEurope/Londong       @z
2019-05-02g      @z2019-05-01 00:00:00+00:00z2019-05-02 00:00:00+00:00rD   r4   r   N)r   r=   	Timestampr   r>   r   r    )r!   
uniform_tzmulti_tzr'   r(   s   &    r)   test_combine_mixed_timezone,TestCombineFirst.test_combine_mixed_timezone   s    R\\,5A3GH
7OLc\e4c
 ))(3#J((LL!<GLL!<G 	
 	v0r,   c                    \        . RO. ROR7      p\        . RO. ROR7      pVP                  V4      p\        R .^,          . ROR7      p\        P                  ! W44       R # )Nr   )NNN)r%   r&   c)r&   r   d)r%   r&   r   r   r   r   s   &    r)   test_combine_first_none_not_nan0TestCombineFirst.test_combine_first_none_not_nan   sM    &o>&o>!!"%4&1*,@A
v0r,    N)__name__
__module____qualname____firstlineno__r*   r0   rQ   r]   rg   rx   r~   r   r   r   __static_attributes____classdictcell__)__classdict__s   @r)   r   r      s=     53#;J'',$>11.1 1r,   r   )r   numpyr   pandas.errorsr   pandasr=   r   r   r   r   r	   pandas._testing_testingr   r   r   r,   r)   <module>r      s,      (   R1 R1r,   