
    I j                         S SK rS SKrS SKJrJrJrJrJr  S SK	J
r  S SKJr  \R                  R                  S5      r\R                  R#                  SS S /5      S 5       rS	 rS
 rS rg)    N)Series	TimedeltaTimedeltaIndexarraytimedelta_range)	get_arrayz.ignore:Setting a value on a view:FutureWarningconsc                     [        U 5      $ Nr   xs    ځ/root/GenerationalWealth/GenerationalWealth/venv/lib/python3.13/site-packages/pandas/tests/copy_view/index/test_timedeltaindex.py<lambda>r      s	    .#    c                 *    [        [        U 5      5      $ r   r   r   s    r   r   r      s    .!23r   c                     [        SSS9n[        U5      nU " U5      nUR                  SS9n[        S5      UR                  S'   [
        R                  " X45        g )Nz1 day   )periodsT)deepz5 daysr   )r   r   copyr   iloctmassert_index_equal)r	   dtseridxexpecteds        r   test_timedeltaindexr      sR     
!	,B
*C
s)CxxTx"HH%CHHQK#(r   c                      [         R                  " SS/SS9n [        U 5      n[         R                  " U [	        U5      5      (       a   eg N      timedelta64[ns]dtype)npr   r   shares_memoryr   arrr   s     r   5test_constructor_copy_input_timedelta_ndarray_defaultr+   #   sA    
((Aq6!2
3C

CYs^44444r   c                      [        SS/SS9n [        U 5      n[        R                  " XR                   5      (       a   eg r!   )r   r   r   r(   r)   s     r   0test_constructor_copy_input_timedelta_ea_defaultr-   *   s;    
A/
0C

CYY/////r   c                  V   [         R                  " SS/SS9n SU R                  l        [	        [        U 5      5      n[         R                  " U [        U5      5      (       a   e[        SS9UR                  S'   [	        [        SS9[        SS9/SS9n[        R                  " X5        g )	Nr"   r#   r$   r%   F)daysr   )nanoseconds)r'   r   flags	writeabler   r   r(   r   r   r   r   assert_series_equal)r*   r   r   s      r   7test_series_from_temporary_timedeltaindex_readonly_datar4   1   s    
((Aq6!2
3CCII
$
%CYs^4444#CHHQK		I!45=NH 3)r   )numpyr'   pytestpandasr   r   r   r   r   pandas._testing_testingr   pandas.tests.copy_view.utilr   markfilterwarnings
pytestmarkparametrizer   r+   r-   r4    r   r   <module>r@      st        1[[''4

 
#3))50
*r   