o
    _~#g                     @   s>   d dl Zd dlZd dlmZmZ d dlmZ G dd dZ	dS )    N)CategoricalSeriesc                   @   s$   e Zd Zdd Zdd Zdd ZdS )TestSeriesCountc                 C   sB   |  t|ks
J tj|d d d< |  t| ksJ d S )N   )countlennpnanisfinitesum)selfdatetime_series r   /var/www/static.ux5.de/https/Moving-Object-Detection-with-OpenCV/env/lib/python3.10/site-packages/pandas/tests/series/methods/test_count.py
test_count   s   zTestSeriesCount.test_countc              	   C   s   t tdg}d}tjt|d/ tdd | dks!J W d    n1 s+w   Y  W d    d S W d    d S 1 sCw   Y  d S )Nz1990/1/1z"use_inf_as_na option is deprecated)matchuse_inf_as_naT   )r   pd	Timestamptmassert_produces_warningFutureWarningoption_contextr   )r   sermsgr   r   r   test_count_inf_as_na   s   "z$TestSeriesCount.test_count_inf_as_nac                 C   s:   t ttjddtjgg ddd}| }|dksJ d S )Nr   r   )         r   r   T)
categoriesordered)r   r   r   r	   r   )r   r   resultr   r   r   test_count_categorical   s   z&TestSeriesCount.test_count_categoricalN)__name__
__module____qualname__r   r   r#   r   r   r   r   r      s    r   )
numpyr   pandasr   r   r   pandas._testing_testingr   r   r   r   r   r   <module>   s
    