o
    թZhE                     @   s   d Z ddlZddlZddlm  mZ ddlm	Z	 ddl
mZ G dd dZdd Zejdg d	dgd
d Zeddd ZdS )z=
Tests for np.foo applied to Series, not necessarily ufuncs.
    N)Seriesc                   @   s   e Zd Zdd ZdS )TestPtpc                 C   s:   d}t jd|}t|}t |t |ksJ d S )Ni     )nprandomZdefault_rngZstandard_normalr   Zptp)selfNZarrser r
   W/var/www/html/lang_env/lib/python3.10/site-packages/pandas/tests/series/test_npfuncs.pytest_ptp   s   zTestPtp.test_ptpN)__name__
__module____qualname__r   r
   r
   r
   r   r      s    r   c                 C   s   t |  d S )N)r   unique)Zdatetime_seriesr
   r
   r   test_numpy_unique   s   r   index)abcdec                 C   sR   t td| tjd}t|dktj}tjdgdggtjd}t|| d S )N   )r   dtyper         r   )	r   ranger   Zint64ZargwhereZastypearraytmZassert_numpy_array_equal)r   sresultexpectedr
   r
   r   test_numpy_argwhere   s   r#   Zpyarrowc                  C   s@   t g ddd} t| }tt g ddd}t|| d S )N)   r   Nzfloat64[pyarrow]r   Zfloat64)r   r   logr   Zassert_series_equal)r	   r!   r"   r
   r
   r   #test_log_arrow_backed_missing_value(   s   
r&   )__doc__numpyr   ZpytestZpandas.util._test_decoratorsutilZ_test_decoratorstdZpandasr   Zpandas._testingZ_testingr   r   r   markZparametrizer#   Z
skip_if_nor&   r
   r
   r
   r   <module>   s    	
