1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
U
¬ý°dF    ã@sFdZddlZddlmZmZddlmZmZm    Z    m
Z
Gdd„dƒZ dS)z5
Tests for subclasses of NDArrayBackedExtensionArray
éN)ÚCategoricalIndexÚ
date_range)Ú CategoricalÚ DatetimeArrayÚ PandasArrayÚTimedeltaArrayc@s4eZdZdd„Zdd„Zdd„Zdd„Zd    d
„Zd S) Ú    TestEmptycCsútdddgdd}|j}d}tj||d}t|tƒs8t‚|j|ksFt‚|jjtj    ksXt‚tjd|d}t|tƒstt‚|jdks‚t‚|jjtj    ks”t‚t
|ƒtt t d    ƒƒd
d d}|j}tj||d}t|tƒsÖt‚|j|ksät‚|jjtj ksöt‚dS) NÚaÚbÚcT)Zordered)é©Údtype)iir F)rrrÚ_emptyÚ
isinstanceÚAssertionErrorÚshapeZ_ndarrayÚnpZint8ÚreprÚlistÚrangeÚint16)ÚselfÚcirrÚresult©rú^d:\z\workplace\vscode\pyvenv\venv\Lib\site-packages\pandas/tests/arrays/test_ndarray_backed.pyÚtest_empty_categoricals$z TestEmpty.test_empty_categoricalcCsTtdddd}|j}d}tj||d}|j|ks4t‚t|tƒsBt‚|j|ksPt‚dS)Nz
2016-01-01éz
Asia/Tokyo)ZperiodsÚtz)rr )rrrrrrr)rZdtirrrrrrÚtest_empty_dt64tz-szTestEmpty.test_empty_dt64tzcCs2d}tj|dd}t|tƒs t‚|j|ks.t‚dS)N©éé    zdatetime64[ns]r )rrrrr©rrrrrrÚtest_empty_dt647szTestEmpty.test_empty_dt64cCs2d}tj|dd}t|tƒs t‚|j|ks.t‚dS)Nr!zm8[ns]r )rrrrrr$rrrÚtest_empty_td64=szTestEmpty.test_empty_td64cCsXtt ddg¡ƒ}|j}d}tj||d}t|tƒs8t‚|j|ksFt‚|j|ksTt‚dS)Nérr!r )rrÚarrayrrrrr)rZarrrrrrrrÚtest_empty_pandas_arrayCsz!TestEmpty.test_empty_pandas_arrayN)Ú__name__Ú
__module__Ú __qualname__rr r%r&r)rrrrrs
 
r) Ú__doc__ÚnumpyrZpandasrrZpandas.core.arraysrrrrrrrrrÚ<module>s