o
    ŀg                     @   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)intots)name)
r   to_dictcopyindex
_with_freqtmassert_series_equalcollectionsCounteritems)selfr   datetime_seriesresultexpectedfrom_methodfrom_constructor r   \/var/www/html/myenv/lib/python3.10/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sJ 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markparametrizedictr   defaultdictlistOrderedDictr   npint64uint64r$   r   r   r   r   r   
   s    
r   )
r   numpyr/   r(   pandasr   pandas._testing_testingr   r   r   r   r   r   <module>   s    