a
    é´«j  ã                   @   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 sXJ ‚|}t ||¡ |d }|jd u s~J ‚|d d…  d¡}t ||¡ d S )Nr   éd   Úns)ZperiodsÚfreqé   é2   é   )r   r   ÚrepeatÚtmZassert_index_equal)ÚselfZtdiÚresultÚexpectedZresult2Z	expected2Zresult3Z	expected3© r   ún/var/www/html/laksyashrimp/venv/lib/python3.9/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])Zdtyper   ÚDg¢²ÃÔå ?@Úsi€Þ( i¯ß( )r   r   ÚnpZtimedelta64Únanr   Zassert_equal)r   Zindex_or_seriesZ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   Zpandasr   r   r   Zpandas._testingZ_testingr   r   r   r   r   r   Ú<module>   s   