1
2
3
4
5
6
7
8
9
10
11
12
13
14
U
­ý°d`ã@snddlZddlmmmZddlZddlmZddl    m
Z dd„Z ej  dddg¡dd    „ƒZd
d „ZdS) éN)ÚSeriescCsPtdddgdd}tgdd}t |j|jg¡}t ||g¡j}t ||¡dS)NÚaÚbÚcÚcategory)Zdtype)rÚ_concatÚ concat_compatZ_valuesÚpdÚconcatÚtmZassert_categorical_equal)Zser1Zser2ÚresultÚexpected©rúVd:\z\workplace\vscode\pyvenv\venv\Lib\site-packages\pandas/tests/dtypes/test_concat.pyÚ.test_concat_mismatched_categoricals_with_empty
s
 rÚcopyTFcCsBt dtjdddgi¡}| ¡}tj|g|d}t ||¡dS)NÚ    timestampz2020-04-08 09:00:00.709949+0000ÚUTC)Útz)r)r    Z    DataFrameÚ    Timestamprr
r Zassert_frame_equal)rZdfr r rrrÚ%test_concat_single_dataframe_tz_awares ÿrc    Cstjdddd}|j dd¡}tj|dd…|dd…gdd}t ||¡tj|dd…dd…f|dd…dd…fgd    d}t ||¡d
}tj    t
|d 8tj|dd…dd…f|dd…dd…fgddW5QRXtj    t
|d (tj|dd…|dd…gd    dW5QRXdS) Nz
2016-01-01é$ÚD)ZperiodsÚfreqéér)ZaxisézNall the input array dimensions.* for the concatenation axis must match exactly)Úmatch) r    Z period_rangeÚ_dataZreshaperrr Zassert_period_array_equalÚpytestZraisesÚ
ValueError)ÚpiZarrr ÚmsgrrrÚtest_concat_periodarray_2ds" 2 ÿ<r#)rZpandas.core.dtypes.concatÚcoreZdtypesr
rZpandasr    rZpandas._testingZ_testingr rÚmarkZ parametrizerr#rrrrÚ<module>s