
    Owg                     @    d dl Zd dlmZmZmZ d dlmZ  G d d      Z	y)    N)NaT	Timedeltatimedelta_rangec                       e Zd Zd Zd Zy)TestTimedeltaIndexArithmeticc                 j   t        ddd      }|dz  }|j                  J |d d j                  d      }t        j                  ||       |dz  }|j                  J |}t        j                  ||       |dz  }|j                  J |d d j                  d      }t        j                  ||       y )Nr   d   ns)periodsfreq   2      )r   r   repeattmassert_index_equal)selftdiresultexpectedresult2	expected2result3	expected3s           f/var/www/horilla/myenv/lib/python3.12/site-packages/pandas/tests/indexes/timedeltas/test_arithmetic.pytest_arithmetic_zero_freqz6TestTimedeltaIndexArithmetic.test_arithmetic_zero_freq   s    a48q{{"""s8??1%
fh/(||###	
gy1'||###GNN3'	
gy1    c           	         t        d      } ||||t        dd      z   t        gd      }|t        j                  dd	      z  } |ddd
t        j                  g      }t        j                  ||       |t        j                  dd      z  } |dddt        j                  g      }t        j                  ||       y )N   )days      )minutessecondszm8[ns])dtyper   Dg ?@si( i( )r   r   nptimedelta64nanr   assert_equal)r   index_or_seriesscalartdr   r   s         r   test_tdi_divisionz.TestTimedeltaIndexArithmetic.test_tdi_division    s     #VVi1&EEsK

 bnnQ,,"8"&&A
 	)bnnQ,,"%<bffE
 	)r   N)__name__
__module____qualname__r   r/    r   r   r   r      s    2$*r   r   )
numpyr(   pandasr   r   r   pandas._testing_testingr   r   r3   r   r   <module>r8      s#     
 &* &*r   