o
    _~#gE                     @   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randomdefault_rngstandard_normalr   ptp)selfNarrser r   /var/www/static.ux5.de/https/Moving-Object-Detection-with-OpenCV/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)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   int64argwhereastypearraytmassert_numpy_array_equal)r   sresultexpectedr   r   r   test_numpy_argwhere   s   r,   pyarrowc                  C   s@   t g ddd} t| }tt g ddd}t|| d S )N)   r   Nzfloat64[pyarrow]r!   float64)r   r   logr'   assert_series_equal)r   r*   r+   r   r   r   #test_log_arrow_backed_missing_value(   s   
r2   )__doc__numpyr   pytestpandas.util._test_decoratorsutil_test_decoratorstdpandasr   pandas._testing_testingr'   r   r   markparametrizer,   
skip_if_nor2   r   r   r   r   <module>   s    	
