1
2
3
4
5
6
7
8
9
10
11
12
13
U
®ý°d–ã@s6dZddlZddlmZmZmZmZGdd„dƒZdS)z\
Series.item method, mainly testing that we get python scalars as opposed to
numpy scalars.
éN)ÚSeriesÚ    TimedeltaÚ    TimestampÚ
date_rangec@seZdZdd„ZdS)ÚTestItemc    Cstdgƒ}| ¡}|dkst‚||jdks0t‚t|tƒs>t‚tdgdgd}| ¡}t|tƒsdt‚|dkspt‚tddgƒ}d}tjt    |d| ¡W5QRXt
d    dd
}tjt    |d| ¡W5QRXtjt    |dt|ƒ ¡W5QRX|dd… ¡}t|t ƒst‚t|ƒdd… ¡}t|t ƒs:t‚||}tjt    |d| ¡W5QRXtjt    |dt|ƒ ¡W5QRX|dd… ¡}t|t ƒsªt‚t|ƒdd… ¡}t|t ƒsÎt‚t|d d gd}|jdd… ¡}||dkst‚dS) Nérgà?é)Úindexéz#can only convert an array of size 1)Úmatchz
2016-01-01)Zperiodséé) rÚitemÚAssertionErrorZilocÚ
isinstanceÚintÚfloatÚpytestZraisesÚ
ValueErrorrrr)ÚselfZserÚresultÚmsgZdtiÚvalZtdi©rú\d:\z\workplace\vscode\pyvenv\venv\Lib\site-packages\pandas/tests/series/methods/test_item.pyÚ    test_itemsD
    zTestItem.test_itemN)Ú__name__Ú
__module__Ú __qualname__rrrrrrsr)Ú__doc__rZpandasrrrrrrrrrÚ<module>s