o
    _~#g                     @   s:   d dl Zd dlmZmZmZ d dlmZ G dd dZ	dS )    N)NaT	Timedeltatimedelta_rangec                   @   s   e Zd Zdd Zdd ZdS )TestTimedeltaIndexArithmeticc                 C   s   t dddd}|d }|jd u sJ |d d d}t|| |d }|jd u s,J |}t|| |d }|jd u s?J |d d d}t|| d S )Nr   d   ns)periodsfreq   2      )r   r	   repeattmassert_index_equal)selftdiresultexpectedresult2	expected2result3	expected3 r   /var/www/static.ux5.de/https/Moving-Object-Detection-with-OpenCV/env/lib/python3.10/site-packages/pandas/tests/indexes/timedeltas/test_arithmetic.pytest_arithmetic_zero_freq   s   z6TestTimedeltaIndexArithmetic.test_arithmetic_zero_freqc                 C   s   t dd}||||t ddd tgdd}|tdd	 }|ddd
tjg}t|| |tdd }|dddtjg}t|| d S )N   )days      )minutessecondszm8[ns])dtyper   Dg ?@si( i( )r   r   nptimedelta64nanr   assert_equal)r   index_or_seriesscalartdr   r   r   r   r   test_tdi_division    s   
z.TestTimedeltaIndexArithmetic.test_tdi_divisionN)__name__
__module____qualname__r   r+   r   r   r   r   r      s    r   )
numpyr$   pandasr   r   r   pandas._testing_testingr   r   r   r   r   r   <module>   s   