
    bMhE                         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                            dg ddg          d	             Z ej        d
          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       `/var/www/html/test/jupyter/venv/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_argwherer2      sz     	uQxxuBH555A[Q&&rx00Fx!qc
"(333H11111r   pyarrowc                      t          g dd          } t          j        |           }t          j        t          g dd                    }t          j        ||           d S )N)   r   Nzfloat64[pyarrow]r'   float64)r   r   logr-   assert_series_equal)r   r0   r1   s      r   #test_log_arrow_backed_missing_valuer9   (   sa     %7
8
8
8CVC[[Fvf\\\;;;<<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      s	         ) ) ) ) ) ) ) ) )            * * * * * * * *  
 #<#<#<d"CDD2 2 ED2 y- - - - -r   