
    o[we                         d Z ddlZddlZddlmZ ddlmZ  G d d          Z	d Z
ej                            dg ddg          d	             ZdS )
z=
Tests for np.foo applied to Series, not necessarily ufuncs.
    N)Seriesc                       e Zd Zd ZdS )TestPtpc                     d}t           j                            d                              |          }t	          |          }t          j        |          t          j        |          k    sJ d S )Ni     )nprandomdefault_rngstandard_normalr   ptp)selfNarrsers       @lib/python3.11/site-packages/pandas/tests/series/test_npfuncs.pytest_ptpzTestPtp.test_ptp   s\    i##A&&66q99Skkvc{{bfSkk))))))    N)__name__
__module____qualname__r    r   r   r   r      s#        * * * * *r   r   c                 .    t          j        |            d S )N)r   unique)datetime_seriess    r   test_numpy_uniquer      s    Ior   index)abcdec                 4   t          t          d          | t          j                  }t          j        |dk                                  t          j                  }t          j        dgdggt          j                  }t          j        ||           d S )N   )r   dtyper         )r$   )	r   ranger   int64argwhereastypearraytmassert_numpy_array_equal)r   sresultexpecteds       r   test_numpy_argwherer1      sz     	uQxxuBH555A[Q&&rx00Fx!qc
"(333H11111r   )__doc__numpyr   pytestpandasr   pandas._testing_testingr,   r   r   markparametrizer1   r   r   r   <module>r:      s                     * * * * * * * *  
 #<#<#<d"CDD2 2 ED2 2 2r   