+
    xȇi/                     V    ^ RI t^ RIt^ RIHtHtHtHtHtH	t	 ^ RI
Ht  ! R R4      tR# )    N)	DataFrameDatetimeIndexPeriodIndexSeries
date_rangeperiod_rangec                   >   a  ] tR t^t o R tR tR tR tR tRt	V t
R# )TestToPeriodc                   ^p\        RRRR7      p\        \        P                  P	                  ^4      P                  \        V4      V34      V. R
OR7      pRVR&   \        P                  ! WA4      pVP                  4       pVP                  4       p\        RR4      Vn        \        P                  ! WV4       VP                  R4      pVP                  P                  R4      Vn        \        P                  ! WV4       R	# )   1/1/20001/1/2001DfreqindexcolumnsamixMN)ABCr   E)r   r   nprandomdefault_rngstandard_normallentmget_obj	to_periodcopyr   r   assert_equalasfreq)selfframe_or_seriesKdrobjptsexps   &&     y/Users/max/.openclaw/workspace/postharvest/venv/lib/python3.14/site-packages/pandas/tests/frame/methods/test_to_period.pytest_to_periodTestToPeriod.test_to_period   s    
JS9II!!!$44c"gq\B-

 E
jj.mmohhj Z8	
!mmC II$$S)	
!    c                   \        . RO4      p\        . RORR7      p\        \        P                  P                  ^4      P                  R4      W"R7      p\        P                  ! WA4      pVP                  4       pW5n
        \        P                  ! VP                  4       V4       V\        J d@   VP                  4       pW5n        \        P                  ! VP                  ^R7      V4       R# R# )
2011-01-01r   r   r   axisN)r3   z
2011-01-02z
2011-01-03z
2011-01-04)   r6   )r   r   r   r   r   r   r   r!   r"   r$   r   r%   r#   r   assert_frame_equal)r'   r(   idxexp_idxr+   expecteds   &&    r.   test_to_period_without_freq(TestToPeriod.test_to_period_without_freq%   s    TUD3
 II!!!$44V<C
 jj.88: 
2i'xxzH&!!#--Q-"7B (r1   c                   \        R R4      p\        \        P                  P	                  ^4      P                  \        V4      ^34      VR7      pRVR&   VP                  pVP                  ^R7      pVP                  4       p\        R R4      Vn        \        P                  ! W44       VP                  R^R7      p\        P                  ! VP                  VP                  P                  R4      4       R# )r   r   r   r   r   r4   r   N)r   r   r   r   r   r   r    Tr#   r$   r   r   r!   r7   assert_index_equalr&   )r'   r*   dfr,   r-   s   &    r.   test_to_period_columns#TestToPeriod.test_to_period_columns9   s    
J/ryy,,Q/??R!MUWX5	TTlll"ggi":z:
c'll3Ql'
ckk3;;+=+=c+BCr1   c                Z   \        R R4      p\        \        P                  P	                  ^4      P                  \        V4      ^34      VR7      pRVR&   Rp\        P                  ! \        VR7      ;_uu_ 4        VP                  ^R7       RRR4       R#   + '       g   i     R# ; i)	r   r   r>   r   r   z)No axis named 2 for object type DataFramematchr4   N)r   r   r   r   r   r   r    pytestraises
ValueErrorr#   )r'   r*   rA   msgs   &   r.   test_to_period_invalid_axis(TestToPeriod.test_to_period_invalid_axisG   sy    
J/ryy,,Q/??R!MUWX5	9]]:S11LLaL  2111s   <BB*	c                ^   \        V\        R 7      pV\        J d   VP                  4       p\	        V\
        4      '       gX   R\        V4      P                   2p\        P                  ! \        VR7      ;_uu_ 4        VP                  4        RRR4       R# R#   + '       g   i     R# ; i))r   dtypezunsupported Type rE   N)r   objectr   to_frame
isinstancer   type__name__rG   rH   	TypeErrorr#   )r'   r   r(   r+   rJ   s   &&&  r.   test_to_period_raises"TestToPeriod.test_to_period_raisesP   sv    5/i',,.C%//%d5k&:&:%;<Cy44 54 0444s   >BB,	 N)rS   
__module____qualname____firstlineno__r/   r;   rB   rK   rU   __static_attributes____classdictcell__)__classdict__s   @r.   r
   r
      s%     "*C(D!	  	 r1   r
   )numpyr   rG   pandasr   r   r   r   r   r   pandas._testing_testingr!   r
   rW   r1   r.   <module>rb      s&       J  J r1   