
    dU                     H    d Z ddlZddlmZmZ ddlmZ  G d d          Z	dS )z@
Tests for np.foo applied to DataFrame, not necessarily ufuncs.
    N)Categorical	DataFramec                       e Zd Zd Zd ZdS )TestAsArrayc                     t          t          ddg          t          ddg          d          }t          j        |          }t          j        ddgddggd          }t          j        ||           d S )N      )ABobject)dtype)r   r   npasarrayarraytmassert_numpy_array_equal)selfdfresultexpecteds       [/var/www/html/t/fyr/venv311/lib/python3.11/site-packages/pandas/tests/frame/test_npfuncs.pytest_asarray_homogenousz#TestAsArray.test_asarray_homogenous   sv    [!Q00{Aq67J7JKKLLB8aVaV,H===
#FH55555    c                 j   t          j        d          5  t          j        |          }d d d            n# 1 swxY w Y   t          |t	          |                    sJ |j        |j        u sJ |j        |j        u sJ t          j        ||	                    t           j                             d S )Nignore)all)
r   errstatesqrt
isinstancetypeindexcolumnsr   assert_frame_equalapply)r   float_framer   s      r   test_np_sqrtzTestAsArray.test_np_sqrt   s    [X&&& 	* 	*W[))F	* 	* 	* 	* 	* 	* 	* 	* 	* 	* 	* 	* 	* 	* 	*&${"3"344444|{00000~!44444
fk&7&7&@&@AAAAAs   7;;N)__name__
__module____qualname__r   r&    r   r   r   r      s7        6 6 6B B B B Br   r   )
__doc__numpyr   pandasr   r   pandas._testing_testingr   r   r*   r   r   <module>r0      s                     B B B B B B B B B Br   