o
    _~#g[                     @   s6   d Z ddlZddlmZmZmZmZ G dd dZdS )z\
Series.item method, mainly testing that we get python scalars as opposed to
numpy scalars.
    N)Series	Timedelta	Timestamp
date_rangec                   @   s   e Zd Zdd ZdS )TestItemc                 C   sf  t dg}| }|dksJ ||jd ksJ t|tsJ t dgdgd}| }t|ts2J |dks8J t ddg}d}tjt|d |  W d    n1 sVw   Y  t	d	dd
}tjt|d |  W d    n1 sww   Y  tjt|d t |  W d    n1 sw   Y  |d d  }t|t
sJ t |d d  }t|t
sJ || }tjt|d |  W d    n1 sw   Y  tjt|d t |  W d    n1 sw   Y  |d d  }t|tsJ t |d d  }t|tsJ t |ddgd}|jd d  }||d ks1J d S )N   r   g      ?   )index   z#can only convert an array of size 1)matchz
2016-01-01)periods      )r   itemiloc
isinstanceintfloatpytestraises
ValueErrorr   r   r   )selfserresultmsgdtivaltdi r   /var/www/static.ux5.de/https/Moving-Object-Detection-with-OpenCV/env/lib/python3.10/site-packages/pandas/tests/series/methods/test_item.py	test_item   sN   



zTestItem.test_itemN)__name__
__module____qualname__r    r   r   r   r   r      s    r   )__doc__r   pandasr   r   r   r   r   r   r   r   r   <module>   s    