
    OwgE                         d Z ddlZddlZddlmc mZ ddlm	Z	 ddl
mZ  G d d      Zd Zej                  j!                  dg ddg      d	        Z ej$                  d
      d        Zy)z=
Tests for np.foo applied to Series, not necessarily ufuncs.
    N)Seriesc                       e Zd Zd Zy)TestPtpc                     d}t         j                  j                  d      j                  |      }t	        |      }t        j
                  |      t        j
                  |      k(  sJ y )Ni     )nprandomdefault_rngstandard_normalr   ptp)selfNarrsers       W/var/www/horilla/myenv/lib/python3.12/site-packages/pandas/tests/series/test_npfuncs.pytest_ptpzTestPtp.test_ptp   sM    ii##A&66q9Skvvc{bffSk)))    N)__name__
__module____qualname__r    r   r   r   r      s    *r   r   c                 .    t        j                  |        y )N)r   unique)datetime_seriess    r   test_numpy_uniquer      s    IIor   index)abcdec                 6   t        t        d      | t        j                        }t        j                  |dkD        j                  t        j                        }t        j                  dgdggt        j                        }t        j                  ||       y )N   )r   dtyper         r$   )	r   ranger   int64argwhereastypearraytmassert_numpy_array_equal)r   sresultexpecteds       r   test_numpy_argwherer2      sg     	uQxuBHH5A[[Q&&rxx0Fxx!qc
"((3H1r   pyarrowc                      t        g dd      } t        j                  |       }t        j                  t        g dd            }t        j                  ||       y )N)   r   Nzfloat64[pyarrow]r'   float64)r   r   logr-   assert_series_equal)r   r0   r1   s      r   #test_log_arrow_backed_missing_valuer9   (   sC     %7
8CVVC[Fvvf\;<H68,r   )__doc__numpyr   pytestpandas.util._test_decoratorsutil_test_decoratorstdpandasr   pandas._testing_testingr-   r   r   markparametrizer2   
skip_if_nor9   r   r   r   <module>rG      sx      ) )  * *
 #<d"CD2 E2 y- -r   