o
    g
                     @   s6   d dl Zd dlmZmZ d dlmZ G dd dZdS )    N)	DataFrame
date_rangec                   @   s$   e Zd Zdd Zdd Zdd ZdS )
TestEqualsc                 C   sB   t ddgddgd}t ddgddgd}||du sJ d S )N      sd)abF)r   equals)selfdf1df2 r   d/home/ubuntu/cloudmapper/venv/lib/python3.10/site-packages/pandas/tests/frame/methods/test_equals.pytest_dataframe_not_equal   s   z#TestEquals.test_dataframe_not_equalc                 C   s|   t ddgddgddgd}| g d }|s(|jjd j|jjd jks(J t|| ||s5J ||s<J d S )	Nxyr   r   wz)ABCr   )r   reset_index_mgrblocksdtypetmassert_frame_equalr   )r   using_array_managerdf0r   r   r   r   test_equals_different_blocks   s    z'TestEquals.test_equals_different_blocksc                 C   s@  t jd}tt jd|dgd}d |d< tdddd|d	< tddd
d|d< |d |d	  |d< t dd dk|d< t j|jd d d< | }|d 	|d sWJ |d	 	|d	 sbJ |d 	|d smJ |d 	|d sxJ |d 	|d sJ |	|sJ |	t
rJ | }|d d|d< |	|rJ | }||}|	|rJ | }|jd d d |_|	|rJ tdddd}||}| }|	|sJ |jdgdd}|jdgdd}|	|sJ |jdgdd}|	|rJ |jdgdd}|jdgdd}|	|sJ d S )N
   floats)indexcolumnsz0the sky is so blue. we could use more chocolate.textz2000-1-1T)periodsfreqstartDenddiff   r   boolr   float32T)append)nprandomr   splitr   arangenanloccopyr   objectastype	set_indexr%   )r   r$   r   r   	differentdifferent_indexdf3r   r   r   test_equals   sJ   

zTestEquals.test_equalsN)__name__
__module____qualname__r   r!   r@   r   r   r   r   r   
   s    r   )	numpyr3   pandasr   r   pandas._testing_testingr   r   r   r   r   r   <module>   s    