a
    Pf                     @   sB   d dl Z d dlZd dlZd dlmZ d dlmZ G dd dZ	dS )    N)Seriesc                	   @   st   e Zd Zejdeee	ej
fdd Zejdedddedddd	edddd	fd
d ZdS )TestSeriesToDictmappingc                 C   sj   t |j|ddd}| }|jd |_t|| t |jtjd}t t|	 }t|| d S )N)Zintots)name)
r   to_dictcopyindexZ
_with_freqtmZassert_series_equalcollectionsCounteritems)selfr   Zdatetime_seriesresultexpectedZfrom_methodZfrom_constructor r   a/var/www/ai-form-bot/venv/lib/python3.9/site-packages/pandas/tests/series/methods/test_to_dict.pytest_to_dict   s    zTestSeriesToDict.test_to_dictinput@   
   )abABC)r   r   cc                 C   s4   t | }t|d tsJ t|d ts0J d S )Nr   r   )r   r   
isinstanceint)r   r   dr   r   r   test_to_dict_return_types   s    z*TestSeriesToDict.test_to_dict_return_typesN)__name__
__module____qualname__pytestmarkZparametrizedictr   defaultdictlistOrderedDictr   npZint64Zuint64r   r   r   r   r   r   
   s   
r   )
r   numpyr(   r"   Zpandasr   Zpandas._testingZ_testingr
   r   r   r   r   r   <module>   s
   