o
    �¨Êh�  ã                   @   s^   d dl Z d dlmZmZmZmZ d dlmZ e j	 
d¡Ze j	 ddd„ dd„ g¡dd	„ ƒZdS )
é    N)ÚPeriodÚPeriodIndexÚSeriesÚperiod_rangez.ignore:Setting a value on a view:FutureWarningÚconsc                 C   s   t | ƒS ©N©r   ©Úx© r   ú_/var/www/html/env/lib/python3.10/site-packages/pandas/tests/copy_view/index/test_periodindex.pyÚ<lambda>   s    r   c                 C   s   t t | ƒƒS r   r   r	   r   r   r   r      s    c                 C   sP   t dddd�}t|ƒ}||ƒ}|jdd�}tdƒ|jd< | r&t ||¡ d S d S )	Nz
2019-12-31é   ÚD)ÚperiodsÚfreqT)Údeepz
2020-12-31r   )r   r   Úcopyr   ÚilocÚtmÚassert_index_equal)Úusing_copy_on_writer   ÚdtÚserÚidxÚexpectedr   r   r   Útest_periodindex   s   ÿr   )ÚpytestÚpandasr   r   r   r   Úpandas._testingÚ_testingr   ÚmarkÚfilterwarningsÚ
pytestmarkÚparametrizer   r   r   r   r   Ú<module>   s    ÿþþ