U
    >vf                     @   s2   d dl Zd dlZd dlmZmZ G dd dZdS )    N)CategoricalSeriesc                   @   s   e Zd Zdd Zdd ZdS )TestSeriesCountc              	   C   sv   |  t|ksttj|d d d< |  t| ks>ttdd" t	t
dg  dkshtW 5 Q R X d S )N   Zuse_inf_as_naTz1990/1/1   )countlenAssertionErrornpNaNisfinitesumpdZoption_contextr   Z	Timestamp)selfZdatetime_series r   J/tmp/pip-unpacked-wheel-vdrwu74i/pandas/tests/series/methods/test_count.py
test_count   s
    zTestSeriesCount.test_countc                 C   s@   t ttjddtjgdddddgdd}| }|dks<td S )Nr   r            T)
categoriesZordered)r   r   r
   nanr   r	   )r   Zserresultr   r   r   test_count_categorical   s      z&TestSeriesCount.test_count_categoricalN)__name__
__module____qualname__r   r   r   r   r   r   r   
   s   r   )Znumpyr
   Zpandasr   r   r   r   r   r   r   r   <module>   s   